From 047e338df15d5d43f348fe6857a1a8aa91fbf4b7 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Sun, 1 May 2022 18:23:47 +0200 Subject: [PATCH] Global config file. --- shinyproxy/nginx_pep.conf.j2 | 5 ----- shinyproxy/nginx_pep_gcube.conf.j2 | 5 ----- shinyproxy/nginx_pep_global.conf.j2 | 4 ++++ 3 files changed, 4 insertions(+), 10 deletions(-) create mode 100644 shinyproxy/nginx_pep_global.conf.j2 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 ""; +}