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

Update nginx.conf

This commit is contained in:
liberodark 2019-07-27 19:13:39 +02:00 committed by GitHub
parent ac85893731
commit c03d2ed0f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,8 @@
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
location ^~ __PATH__/ {
proxy_pass http://127.0.0.1:3000;
proxy_redirect off;
@ -10,4 +15,4 @@ location ^~ __PATH__/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}