diff --git a/shinyproxy/nginx_pep.conf.j2 b/shinyproxy/nginx_pep.conf.j2 index fcfe23e..fa75f26 100644 --- a/shinyproxy/nginx_pep.conf.j2 +++ b/shinyproxy/nginx_pep.conf.j2 @@ -2,11 +2,6 @@ js_var $auth_token; js_var $account_record; -underscores_in_headers on; -map $http_authorization $source_auth { - default ""; -} - js_import /etc/nginx/snippets/pep.js; # added to bind enforce function js_set $authorization pep.enforce; diff --git a/shinyproxy/nginx_pep_gcube.conf.j2 b/shinyproxy/nginx_pep_gcube.conf.j2 index 3370e58..a15f62a 100644 --- a/shinyproxy/nginx_pep_gcube.conf.j2 +++ b/shinyproxy/nginx_pep_gcube.conf.j2 @@ -2,11 +2,6 @@ js_var $auth_token; js_var $account_record; -underscores_in_headers on; -map $http_authorization $source_auth { - default ""; -} - js_import /etc/nginx/snippets/pep_gcube.js; # added to bind enforce function js_set $authorization pep.enforce; diff --git a/shinyproxy/nginx_pep_global.conf.j2 b/shinyproxy/nginx_pep_global.conf.j2 new file mode 100644 index 0000000..e7cf515 --- /dev/null +++ b/shinyproxy/nginx_pep_global.conf.j2 @@ -0,0 +1,4 @@ +underscores_in_headers on; +map $http_authorization $source_auth { + default ""; +}