From 76e7222b05f741d991417f61b0b439446cbb9a23 Mon Sep 17 00:00:00 2001 From: Floris Remmen <50661872+fl0r1s@users.noreply.github.com> Date: Wed, 9 Jun 2021 21:14:59 +0200 Subject: [PATCH] Update the Adguard example to encompass first run On first run, the forward should go to port 3000 instead of port 80. After installing, port 80 is the correct one. --- adguard.subdomain.conf.sample | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/adguard.subdomain.conf.sample b/adguard.subdomain.conf.sample index 4771b6d..69ce67a 100644 --- a/adguard.subdomain.conf.sample +++ b/adguard.subdomain.conf.sample @@ -1,5 +1,7 @@ -## Version 2021/05/18 +## Version 2021/06/09 # make sure that your dns has a cname set for adguard and that your adguard container is named adguard +# After first run, update the port of the app to port 80 + server { listen 443 ssl; @@ -32,7 +34,9 @@ server { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app adguard; - set $upstream_port 80; + set $upstream_port 3000; + # After first run, comment line above and uncomment line below + # set $upstream_port 80; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; @@ -42,7 +46,9 @@ server { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app adguard; - set $upstream_port 80; + set $upstream_port 3000; + # After first run, comment line above and uncomment line below + # set $upstream_port 80; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port;