1. The problem I’m having:
Setting up SSL. I am very confused as to how to set things up.
I am purely a coder/developer and front end UI (PHP, React, Python) so networking is absolutely not my strong suit.
My research seems to get conflicting results from previous versions of caddy and also “non” docker installations.
I just want to have SSL for local sites for example.
jellyfin.home.lab {
reverse_proxy jellyfin:8096
}
And then have that same dockerized container available externally from
jellyfin.lab.audasmedia.com.au{
reverse_proxy jellyfin:8096
}
And both of these use SSL in the most simple way.
I have my own website at audasmedia.com.au and set up a subdomain lab.audasmedia.com.au which forwarads everything to my public static IP for my local home network. This port forwards to pihole which distributes things via DNS server to caddy which reverse proxies.
The domain lab.audasmedia.com.au has its own lts encrypt certificate which happens automatically on inmotionhosting - I tried copying that and sticking it in the docker folder on Ubuntu- - please don’t laugh at me - and then bringing that in with having copied the certificate & key into cert.pem etc as shown.
lab.audasmedia.com.au {
tls cert.pem key.pem
}
Just really not sure how to go about setting things up - I have spent the last few days going through documentation on this to no avail.
I guess its because so much magic is happening, I guess I can follow things better if htey are vastly more complex and stricter steps are required - but I’m also an Apache2 guy - so maybe thats why.
Have tried many different permutations, variations etc.
Please let me know if you need clarification on anything in my set up as this is a real rambling waflle.
Sorry.
Thanks.
2. Error messages and/or full log output:
I am not getting any responses at all - outside of an error message when trying to create a local tls (use internal ???)
jellyfin.home.lab{
tls internal
}
or I tried
*.home.lab {
tls internal
}
It tells me the domain suffix (top level) is not valid.
3. Caddy version:
Docker caddy:latest
4. How I installed and ran Caddy:
Docker
a. System environment:
Docker on virtual machine linux on proxmox
b. Command:
I have no idea - so I tried the following but it could not find these. I copied the key and cert from my domain and pasted them into a file next to the docker-compose.yml
As I said - SSL has never been my thing - so I am quite lost in the various versions of caddy and the types (Bash with SSL commands, Docker etc)
lab.audasmedia.com.au {
tls cert.pem key.pem
}
c. Service/unit/compose file:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
d. My complete Caddy config:
I have tried all these permutations without the host prefix (http / https)
http://ghost.home.lab {
reverse_proxy freshrss:80
}
#REMOTE
http://homepage.lab.audasmedia.com.au {
import basic-auth
reverse_proxy homepage:3000
}
http://freshrss.lab.audasmedia.com.au {
import basic-auth
reverse_proxy freshrss:80
}