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

19 lines
553 B
Nginx Configuration File
Raw Normal View History

2019-07-27 19:13:39 +02:00
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
2019-01-09 09:31:49 +01:00
location ^~ __PATH__/ {
2019-01-09 11:10:40 +01:00
proxy_pass http://127.0.0.1:3000;
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";
2019-07-27 19:13:39 +02:00
}