events { } http { server { listen 8099; location / { proxy_pass https://localhost:631; proxy_hide_header X-Frame-Options; proxy_hide_header Content-Security-Policy; add_header Content-Security-Policy "sandbox allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-scripts"; sub_filter '"/' '"$http_x_ingress_path/'; sub_filter "'/" "'$http_x_ingress_path/"; sub_filter_once off; } } }