2023-01-16 22:20:05 +01:00
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
|
|
location __PATH__/ {
|
|
|
|
|
|
|
|
proxy_pass https://127.0.0.1:__PORT__;
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Host $server_name;
|
|
|
|
|
|
|
|
# WebSocket support
|
2022-12-30 00:31:34 +01:00
|
|
|
proxy_http_version 1.1;
|
2022-12-22 21:19:21 +01:00
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
2022-12-30 00:31:34 +01:00
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
2022-12-22 21:47:27 +01:00
|
|
|
|
2022-12-30 00:31:34 +01:00
|
|
|
location /images/ {
|
|
|
|
alias __FINALPATH__/images/;
|
|
|
|
}
|
2022-12-22 21:47:27 +01:00
|
|
|
|
2022-12-30 00:31:34 +01:00
|
|
|
location /static/ {
|
|
|
|
alias __FINALPATH__/static/;
|
2022-12-22 21:47:27 +01:00
|
|
|
}
|