mirror of
https://github.com/YunoHost-Apps/monitorix_ynh.git
synced 2024-09-03 19:46:06 +02:00
Improve security in Nginx config
This commit is contained in:
parent
a9d33b2cb5
commit
57d1db00ef
1 changed files with 5 additions and 1 deletions
|
@ -1,11 +1,15 @@
|
|||
location YNH_WWW_PATH {
|
||||
include proxy_params;
|
||||
proxy_pass http://127.0.0.1:SERVICE_PORTYNH_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;
|
||||
|
|
Loading…
Reference in a new issue