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.
This commit is contained in:
Floris Remmen 2021-06-09 21:14:59 +02:00 committed by GitHub
commit 76e7222b05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;