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

27 lines
699 B
Nginx Configuration File
Raw Normal View History

2023-05-26 19:09:08 +02:00
location __PATH__/static/ {
# Service static files by nginx
2024-04-18 09:24:58 +02:00
# e.g.: /var/www/$app/public/static
2024-04-18 09:20:51 +02:00
alias __INSTALL_DIR__/public/static/;
2023-05-26 19:09:08 +02:00
expires 30d;
}
location __PATH__/ {
# this is needed if you have file import via upload enabled
client_max_body_size 100M;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_read_timeout 30;
proxy_send_timeout 30;
proxy_connect_timeout 30;
proxy_redirect off;
proxy_pass http://127.0.0.1:__PORT__;
}