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

15 lines
417 B
Django/Jinja

# variables computed by njs and which may possibly be passed among locations
js_var $auth_token;
js_var $account_record;
proxy_cache_path /tmp levels=1:2 keys_zone=social_cache:10m max_size=10g inactive=60m use_temp_path=off;
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;