# Uncomment this if you use Auth SSL: #map $ssl_client_s_dn $ssl_client_s_dn_cn { # default ""; # ~/CN=(?[^/]+) $CN; #} #>GNUNUX map $ssl_client_s_dn $ssl_client_s_dn_cn { default ""; ~/CN=(?[^/]+) $CN; } #/.*\.psgi)(?:$|/) { include /etc/nginx/fastcgi_params; fastcgi_pass llng_portal_upstream; fastcgi_param REQUEST_URI /.well-known/openid-configuration; fastcgi_param HTTP_HOST %%domain_name_eth0; fastcgi_param LLTYPE psgi; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_split_path_info ^(.*\.psgi)(/.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; } } #>GNUNUX geo $zone_name { default ext; %%gateway_eth0 ext; %%network_eth0 int; } #GNUNUX listen 443 ssl; server_name %%{revprox_client_external_domainnames[0]}; ssl_certificate %%tls_cert_directory/revprox.crt; ssl_certificate_key %%tls_key_directory/revprox.key; ssl_client_certificate %%tls_ca_directory/InternalReverseProxy.crt; ssl_session_cache shared:SSL:10m; #GNUNUX set_real_ip_from %%revprox_client_server_ip; real_ip_header X-Forwarded-For; #/.*\.psgi)(?:$|/) { # Note that Content-Security-Policy header is generated by portal itself # FastCGI configuration include /etc/nginx/fastcgi_params; fastcgi_pass llng_portal_upstream; fastcgi_param LLTYPE psgi; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_split_path_info ^(.*\.psgi)(/.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; # Uncomment this if you use Auth SSL: #fastcgi_param SSL_CLIENT_S_DN_CN $ssl_client_s_dn_cn; #>GNUNUX fastcgi_param SSL_CLIENT_S_DN_CN $ssl_client_s_dn_cn; #GNUNUX uwsgi_param SSL_CLIENT_S_DN_CN $ssl_client_s_dn_cn; #GNUNUX add_header Strict-Transport-Security "max-age=15768000"; #GNUNUX location /static/risotto/ { alias /usr/local/lib/static/; } location /static/common/apps/risotto/ { alias /usr/local/lib/static/; } #GNUNUX # rewrite well-known rewrite ^/.well-known/openid-configuration /.well-known/openid-configuration/$zone_name break; location /.well-known/openid-configuration { root /var/www/html; } #