@Whitestrake cheers fella,
I couldn’t for the life of me work out what else was running on port 80, I used netstat and then saw it was EventGhost (webserver plugin addon), completely forgot about that. Thanks for pointing me in the right direction.
I’ve been able to start Caddy 
caddy.exe
Activating privacy features… done.
https://myusername.asuscomm.com
http://myusername.asuscomm.com
I’m very new to using reverse proxies, I was playing with ngnix, I had that working for the most part until I read about Caddy on Reddit and it’s ability so provide SSL from the get go, so I choose to explore it some more.
In a bit more deal, heres what I’m trying to achieve.
I want to be able to secure several webapps running on one PC using SSL
I want to access the pages internally / externally
I want to redirect calls from 80 straight to 443, I will just port forward 443 on my router to my machine
I need some assistance in getting the syntax correct in my caddyfile to achieve this
Here’s the config I had working from ngnix config into Caddy’s. Here is what I had setup for gninx
location /sabnzbd {
proxy_pass http://127.0.0.1:38081;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /sonarr {
proxy_pass http://127.0.0.1:38082;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /radarr {
proxy_pass http://127.0.0.1:38083;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /nzbhydra {
proxy_pass http://127.0.0.1:38084;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header Scheme $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_redirect off;
}
Here is my current Caddyfile now file. Basic I know, hence asking for help.
From what I read all of the proxy header stuff is now handled by transparent, so I don’t need to mention it in the caddyfile?
https://myusername.asuscomm.com, http://myusername.asuscomm.com {
gzip
proxy /sabnzb 127.0.0.1:38081 {
transparent
}
proxy /sonarr 127.0.0.1:38082 {
transparent
}
proxy /radarr 127.0.0.1:38083 {
transparent
}
proxy /nzbhydra 127.0.0.1:38084 {
transparent
}
I’m just testing on the first link at the moment
https://myusername.asuscomm.com/sabnzbd directs to http not https when accessing it from my PC. Using the localhost link loads correctly which it should. Clearly I’m missing something. I’ll carry on playing and hopefully I’ll work it out. But if someone could help me get my caddyfile in order I’d be greatful.
Thanks