This commit is contained in:
Alexandre
2022-06-29 15:42:09 +02:00
parent a5878944db
commit 40c3201507
13 changed files with 240 additions and 6 deletions

View File

@@ -0,0 +1,32 @@
server {
listen %%interface%%:%%port%% default_server;
include /etc/nginx/includes/server_params.conf;
include /etc/nginx/includes/proxy_params.conf;
client_max_body_size 0;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_buffering off;
proxy_read_timeout 30;
proxy_set_header Connection "Upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $http_host; # try $host instead if this doesn't work
proxy_set_header X-Forwarded-Proto $scheme; # http or https
# Allow ingress subpath
proxy_set_header X-Script-Name %%ingress_entry%%/;
proxy_cookie_path / %%ingress_entry%%/;
# Rewrite url
sub_filter_once off;
sub_filter_types *;
sub_filter "/static" "%%ingress_entry%%/static";
# Allow frames
proxy_hide_header "Content-Security-Policy";
add_header X-Frame-Options SAMEORIGIN;
add_header Access-Control-Allow-Origin *;
proxy_set_header Accept-Encoding "";
}
}