As per the title I can successfully connect to my SWAG subdomains through my LAN e.g. h.ttps://cops.mydomain.duckdns.org>, but not from outside my local network.
Port 443 is forwarded from my router to my sever, and duckdns seems to be working fine. The nginx logs are empty. SWAG generated the certificates.
I’ve googled and played with different settings, but to no avail. Is there some special setting I’m missing?
Here are my docker and subdomain.conf settings (using the cops container as an example).
SWAG
docker run -d
–name=swag
–cap-add=NET_ADMIN
–net=lsio
-e PUID=1000
-e PGID=1000
-e TZ=Europe/London
-e URL=<mydomain.duckdns.or-g>
-e SUBDOMAINS=wildcard
-e VALIDATION=duckdns
-e DUCKDNSTOKEN=
-p 443:443
-v /home/pi/swag/config:/config
–restart unless-stopped
Package swag · GitHub
COPS
docker run -d
–name=cops
–net=lsio
-e PUID=1000
-e PGID=1000
-e TZ=Europe/London
-p 8008:80
-v /home/pi/cops/config:/config
-v /mnt/calibre:/books
–restart unless-stopped
Package cops · GitHub
COPS.SUBDOMAIN.CONF
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name cops.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app cops;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}
EDIT: Forwarded port 80 as well and reinitialised the SWAG container. Still doesn’t work.
(Sorry about the misspelled URLS. I’m a new user and can only post 2 URLS in my first few posts)