d4s-nginx-pep-examples/shinyproxy/nginx_pep_gcube.conf.j2

13 lines
317 B
Django/Jinja

# variables computed by njs and which may possibly be passed among locations
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;