diff --git a/roles/hubs/templates/fedmsg_config b/roles/hubs/templates/fedmsg_config index 4a3d7c6b96..b8f7d276c7 100644 --- a/roles/hubs/templates/fedmsg_config +++ b/roles/hubs/templates/fedmsg_config @@ -21,6 +21,9 @@ config = { 'fas_credentials': { 'username': '{{ hubs_fas_username }}', 'password': '{{ hubs_fas_password }}', + {% if env == "staging" %} + 'base_url': "https://admin.stg.fedoraproject.org/accounts/", + {% endif %} }, {% endif %} diff --git a/roles/hubs/templates/hubs_config b/roles/hubs/templates/hubs_config index 45a60661bf..0ddfa53588 100644 --- a/roles/hubs/templates/hubs_config +++ b/roles/hubs/templates/hubs_config @@ -20,6 +20,9 @@ SSE_URL = { {% if hubs_dev_mode %} "port": "8080", {% else %} + {% if hubs_ssl_cert == None %} + "scheme": "https", # Because of the SSL proxy + {% endif %} "path": "/sse", {% endif %} }