1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/calckey_ynh.git synced 2024-09-03 18:16:18 +02:00
calckey_ynh/conf/nginx.conf

26 lines
743 B
Nginx Configuration File
Raw Normal View History

2022-12-21 15:15:37 +01:00
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
2023-01-04 22:28:34 +01:00
location __PATH__/ {
2022-12-21 15:15:37 +01:00
2023-01-04 22:28:34 +01:00
proxy_pass http://127.0.0.1:__PORT__;
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;
2023-01-04 19:30:14 +01:00
proxy_http_version 1.1;
2023-01-04 22:28:34 +01:00
proxy_redirect off;
# For WebSocket
2023-01-04 19:30:14 +01:00
proxy_set_header Upgrade $http_upgrade;
2023-01-04 22:28:34 +01:00
proxy_set_header Connection $connection_upgrade;
2022-12-21 15:15:37 +01:00
2023-01-04 22:28:34 +01:00
# Cache settings
2023-01-05 18:14:33 +01:00
# proxy_cache cache1;
2023-01-04 22:28:34 +01:00
proxy_cache_lock on;
proxy_cache_use_stale updating;
more_set_headers "X-Cache: $upstream_cache_status";
# Change to upload limit
client_max_body_size 80m;
2022-12-21 15:15:37 +01:00
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}