From 656e649d1c56f6526448f9f19fcf3fb526fbbaee Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 11 May 2022 11:23:43 +0200 Subject: [PATCH] Clean up the configuration. --- shinyproxy/ansible_vars/nginx.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shinyproxy/ansible_vars/nginx.yml b/shinyproxy/ansible_vars/nginx.yml index 8bdd3a6..c156aca 100644 --- a/shinyproxy/ansible_vars/nginx.yml +++ b/shinyproxy/ansible_vars/nginx.yml @@ -9,6 +9,8 @@ nginx_set_content_security_options: true nginx_disable_content_security_options: true nginx_x_frame_options: '' nginx_pep_debug_enabled: 'true' +nginx_proxy_define_header_host: true +nginx_proxy_header_x_forwarded_proto: 'https' nginx_conf_remote_snippets: - url: 'https://code-repo.d4science.org/gCubeSystem/d4s-nginx-pep-examples/raw/branch/master/shinyproxy/pep.js.j2' name: pep.js @@ -46,7 +48,7 @@ nginx_virthosts: - 'subrequest_output_buffer_size 128k' - 'js_content pep.enforce' - location: '~ /[^_].+' - target: 'http://shinyproxy_sdg$request_uri' + target: 'http://shinyproxy_sdg' other_opts: - 'subrequest_output_buffer_size 128k' - location: /_jwt_verify_request