worker: Prefix https always

Also, with oauth, add a root CA if present.
This commit is contained in:
sanne 2021-10-12 13:32:34 +02:00 committed by Tom Gundersen
parent 0f44250237
commit cb5acbac74
2 changed files with 39 additions and 32 deletions

View file

@ -1179,7 +1179,7 @@ pg_database = "osbuildcomposer"
pg_user = "postgres"
pg_password = "foobar"
pg_ssl_mode = "disable"
enable_tls = false
enable_tls = true
enable_mtls = false
enable_jwt = true
jwt_keys_url = "https://localhost:8080/certs"
@ -1224,7 +1224,7 @@ TOKEN="$(curl localhost:8081/token | jq -r .access_token)"
--header "Authorization: Bearer badtoken" \
http://localhost:443/api/composer/v1/version)" = "401" ]
sudo systemctl start osbuild-remote-worker@http:--localhost:8700.service
sudo systemctl is-active --quiet osbuild-remote-worker@http:--localhost:8700.service
sudo systemctl start osbuild-remote-worker@localhost:8700.service
sudo systemctl is-active --quiet osbuild-remote-worker@localhost:8700.service
exit 0