1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monitorix_ynh.git synced 2024-09-03 19:46:06 +02:00
monitorix_ynh/conf/nginx.conf
2017-07-21 22:11:45 +02:00

21 lines
No EOL
641 B
Nginx Configuration File

location __YNH_WWW_PATH__ {
proxy_pass http://127.0.0.1:__SERVICE_PORT____YNH_WWW_PATH__;
allow 127.0.0.0/8;
location ~ ^__YNH_WWW_PATH__/(.+\.png)$ {
alias /var/lib/monitorix/www/$1;
}
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 $scheme;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}