1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreerp_ynh.git synced 2024-09-03 19:36:13 +02:00
libreerp_ynh/conf/nginx.conf

52 lines
1.5 KiB
Nginx Configuration File
Raw Permalink Normal View History

2015-09-14 17:12:17 +02:00
location / {
2022-06-15 02:10:40 +02:00
try_files $uri @__APP__;
2016-12-14 10:11:43 +01:00
}
2022-06-15 02:10:40 +02:00
2022-02-13 19:55:00 +01:00
location @__APP__ {
2022-06-15 02:10:40 +02:00
proxy_pass http://127.0.0.1:__PORT__;
client_max_body_size 50M;
client_body_timeout 60m;
fastcgi_read_timeout 60m;
2020-06-12 17:41:57 +02:00
2022-06-15 02:10:40 +02:00
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_buffers 16 64k;
proxy_buffer_size 128k;
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 $host;
proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;
2018-12-14 03:36:58 +01:00
}
2022-06-15 02:10:40 +02:00
2018-12-14 03:36:58 +01:00
location /longpolling {
2022-06-15 02:10:40 +02:00
proxy_pass http://127.0.0.1:__PORT_CHAT__;
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 $host;
proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;
2018-12-14 03:36:58 +01:00
}
2022-06-15 02:10:40 +02:00
2018-12-14 03:36:58 +01:00
location ~* /web/static/ {
2022-06-15 02:10:40 +02:00
proxy_cache_valid 200 90m;
proxy_buffering on;
expires 864000;
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-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;
2016-11-29 00:55:39 +01:00
}