Hi - I’m laid up after an operation so I’m playing around quite a lot with my synology NAS.
I’ve got a number of docker apps setup and able to access externally (using synology built in ddns and application portal reverse proxy). I can also access on my Lan using the built in dns server as my router does not support Nat loopback.
I have been trying to setup traefik but had issues as I found adding labels via portainer problematic - think this was due to synology docker bring an old version and me having linked containers (e.g. NZBGet linked to sonarr, etc).
Now moved onto caddy instead and have been trying a number of different caddyfiles based on links from the internet. I’ve turned off my dns server in case that interferes and have forwarded ports 80/443 on my router to 40080/40443 on my NAS which are then setup in port mapping on the caddy docker container. I wanted to do this so I could leave my existing application portal setup in place rather than deleting it.
Main issue I have is that when I try to access mysynologyddns/sonarr I just get redirected to the DSM logon page. There’s nothing in the caddy docker logs or anything else that I can see to work out why this happens.
Any ideas?
For info caddy file I have tried are based on the info on these pages
Anyone using Caddy on Docker on a Synology NAS (as Reverse Proxy only)? - #41 by Whitestrake Home · causefx/Organizr Wiki · GitHub
The latest caddyfile I’ve tried is:
xxxxx.synology.me {
tls yyyyyyyyyy@gmail
errors stdout
log stdout
gzip
header / {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
X-XSS-Protection "1; mode=block"
X-Content-Type-Options "nosniff"
X-Frame-Options "DENY"
}
#basicauth [user] [pass] {
#/radarr
#/hydra
#/nzbget
#/sonarr
#}
proxy /radarr 192.168.1.116:32774
proxy /hydra 192.168.1.116:32778
proxy /nzbget 192.168.1.116:32772
proxy /sonarr 192.168.1.116:32771
proxy /organizr 192.168.1.116:40009
}
sub.example.com/lazylibrarian {
redir /organizr/
}
Ultimate aim here is to have all requests go via caddy to my docker apps and probably to have organizr as the main way of accessing them - including authorisation to underlying apps based on organizr login (e.g. no user/pass on each individual app).
If anyone could share tips or their caddyfile that does something like the above I’d really appreciate it.