1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adguardhome_ynh.git synced 2024-09-03 18:06:23 +02:00
adguardhome_ynh/conf/nginx.conf

29 lines
829 B
Nginx Configuration File
Raw Normal View History

2021-08-30 13:09:57 +02:00
location / {
2021-07-06 17:45:33 +02:00
# Force usage of https
2019-07-27 19:13:39 +02:00
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
2021-07-06 17:45:33 +02:00
}
2019-07-27 19:13:39 +02:00
2021-07-06 17:45:33 +02:00
proxy_pass http://127.0.0.1:__PORT__;
2019-01-09 09:31:49 +01:00
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 $server_name;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
2021-07-06 17:45:33 +02:00
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
2019-07-27 19:13:39 +02:00
}
2021-08-08 10:37:10 +02:00
2021-08-30 13:38:27 +02:00
#location ~ .*.(gif|jpg|jpeg|png|bmp|swf|css|js)$ {
# proxy_pass http://127.0.0.1:__PORT__;
# proxy_set_header Host $host;
# proxy_set_header X-Forwarded-For $remote_addr;
# }