2018-01-29 22:44:33 +01:00
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
|
|
location __PATH__/ {
|
2020-04-16 23:33:43 +02:00
|
|
|
|
2017-10-30 17:52:57 +01:00
|
|
|
# Path to source
|
|
|
|
alias __FINALPATH__/ ;
|
2014-11-15 17:24:32 +01:00
|
|
|
|
2020-04-16 23:33:43 +02:00
|
|
|
# Force usage of https
|
2017-10-30 17:52:57 +01:00
|
|
|
if ($scheme = http) {
|
|
|
|
rewrite ^ https://$server_name$request_uri? permanent;
|
|
|
|
}
|
|
|
|
|
|
|
|
include uwsgi_params;
|
|
|
|
# Needed for long running operations in admin interface
|
2022-06-19 18:25:06 +02:00
|
|
|
proxy_pass http://localhost:__PORT__/;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_buffering off;
|
|
|
|
client_max_body_size 200M;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2013-12-12 12:12:22 +01:00
|
|
|
}
|