mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
Update nginx.conf
This commit is contained in:
parent
ea3830d5f2
commit
e365b5d0c7
1 changed files with 11 additions and 28 deletions
|
@ -1,35 +1,18 @@
|
||||||
client_max_body_size 10m;
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||||
|
location __PATH__/ {
|
||||||
|
|
||||||
location / {
|
proxy_pass https://127.0.0.1:__PORT__;
|
||||||
try_files $uri @proxy;
|
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;
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
# WebSocket support
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
|
||||||
}
|
|
||||||
|
|
||||||
location @proxy {
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_set_header X-Forwarded-Proto https;
|
|
||||||
proxy_set_header Proxy "";
|
|
||||||
proxy_pass_header Server;
|
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:__PORT__;
|
|
||||||
proxy_buffering on;
|
|
||||||
proxy_redirect off;
|
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
|
||||||
#proxy_cache CACHE;
|
|
||||||
proxy_cache_valid 200 7d;
|
|
||||||
proxy_cache_valid 410 24h;
|
|
||||||
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
|
|
||||||
more_set_headers "X-Cached: $upstream_cache_status";
|
|
||||||
more_set_headers "Strict-Transport-Security: max-age=31536000";
|
|
||||||
|
|
||||||
tcp_nodelay on;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location /images/ {
|
location /images/ {
|
||||||
|
|
Loading…
Reference in a new issue