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

20 lines
697 B
Nginx Configuration File
Raw Normal View History

2015-09-14 17:12:17 +02:00
location / {
2016-12-14 10:11:43 +01:00
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
try_files $uri @#YNH_APP_INSTANCE_NAME#;
}
location @#YNH_APP_INSTANCE_NAME# {
proxy_pass http://127.0.0.1:8069;
2016-11-29 00:55:39 +01:00
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_buffers 16 64k;
2015-09-14 17:12:17 +02:00
proxy_buffer_size 128k;
2016-11-29 00:55:39 +01:00
proxy_redirect off;
2015-09-14 17:12:17 +02:00
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
2016-11-29 00:55:39 +01:00
proxy_set_header X-Forwarded-Proto $scheme;
2015-09-14 17:12:17 +02:00
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
2016-11-29 00:55:39 +01:00
proxy_read_timeout 999999999;
}