diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index a39950948e..e93429c464 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -310,13 +310,6 @@ website: pdc.fedoraproject.org destname: pdc proxyurl: http://localhost:10045 - when: env != 'staging' - - - role: httpd/reverseproxy - website: pdc.fedoraproject.org - destname: pdc - proxyurl: http://localhost:10045 - when: env == 'staging' header_scheme: true tags: pdc diff --git a/roles/pdc/frontend/templates/settings_local.py b/roles/pdc/frontend/templates/settings_local.py index f33b088aa4..16fd6e08cf 100644 --- a/roles/pdc/frontend/templates/settings_local.py +++ b/roles/pdc/frontend/templates/settings_local.py @@ -103,10 +103,8 @@ REST_API_VERSION = 'v1' # https://github.com/product-definition-center/product-definition-center/issues/352 USE_X_FORWARDED_HOST = True -{% if env == 'staging' %} # https://pagure.io/fedora-infrastructure/issue/6122 SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') -{% endif %} BROWSABLE_DOCUMENT_MACROS = { # need to be rewrite with the real host name when deploy.