| Post Reply | RetroFed Forums Forum Index » Selfhosted |
| Author | Message | ||
|---|---|---|---|
|
UnrefinedChihuahua
lemmy.dbzer0.com
UnrefinedChihuahua@lemmy.dbzer0.com Joined: 2024-04-13 |
Hoping the brain trust can help. Single reverse proxy? No issues at all. Caddyfile:
With only the fmd entry, works fine. |
||
| 26 Original | |||
|
UnrefinedChihuahua
lemmy.dbzer0.com
UnrefinedChihuahua@lemmy.dbzer0.com Joined: 2024-04-13 |
Idiot. Didn't close the last bracket and instead used a parentheses. D'oh! Working as it should with the correction. |
||
| 30 | |||
|
cybervseas
lemmy.world
cybervseas@lemmy.world Joined: 2023-06-12 |
Idiot. Didn't close the last bracket and instead used a parentheses. D'oh! Working as it should with the correction.
For once it wasn't DNS! 🔥🔥 |
||
| 28 | |||
|
curbstickle_lw
Moderator
curbstickle_lw@lemmy.world Joined: 2026-06-06 |
For once it wasn't DNS! 🔥🔥
Its never DNS! Unless it is, which is almost always. |
||
| 12 | |||
|
lemmyvore
feddit.nl
lemmyvore@feddit.nl Joined: 2023-06-15 |
Idiot. Didn't close the last bracket and instead used a parentheses. D'oh! Working as it should with the correction.
It's a good idea to validate your config before reloading it (whether it's by running
|
||
| 9 | |||
|
Azura The Spellkissed
lemmy.blahaj.zone
AzuraTheSpellkissed@lemmy.blahaj.zone Joined: 2026-03-30 |
Note that you are likely leaking a list of all your subdomains in certificate transparency logs. Some users might not want that to happen, in that case using a wildcard certificate can help, but it's either more tedious to set up (generating the cert outside of caddy) or less readable (using a Caddyfile with a single domain block for the wildcard containing a handle block per subdomains). |
||
| 7 | |||
|
crandall
lemmy.today
crandall@lemmy.today Joined: 2026-08-11 |
Note that you are likely leaking a list of all your subdomains in certificate transparency logs. Some users might not want that to happen, in that case using a wildcard certificate can help, but it's either more tedious to set up (generating the cert outside of caddy) or less readable (using a Caddyfile with a single domain block for the wildcard containing a handle block per subdomains).
Its actually simpler than I expected to do the wildcard cert setup in Caddy. Its not necessary to nest everything. You can just add the wildcard block at the top, and leave the rest of the config as-is, and they will default to using the wildcard instead of individual certs. |
||
| 9 | |||
|
Azura The Spellkissed
lemmy.blahaj.zone
AzuraTheSpellkissed@lemmy.blahaj.zone Joined: 2026-03-30 |
Its actually simpler than I expected to do the wildcard cert setup in Caddy. Its not necessary to nest everything. You can just add the wildcard block at the top, and leave the rest of the config as-is, and they will default to using the wildcard instead of individual certs.
That would be great. Though I've had that not work as expected at the beginning of 2026, but maybe you are right. |
||
| 4 | |||
|
UnrefinedChihuahua
lemmy.dbzer0.com
UnrefinedChihuahua@lemmy.dbzer0.com Joined: 2024-04-13 |
That would be great. Though I've had that not work as expected at the beginning of 2026, but maybe you are right.
Thanks for this. Next project to look in to. |
||
| 3 | |||
CorrectAlias
piefed.blahaj.zone
CorrectAlias@piefed.blahaj.zoneJoined: 2025-07-22 |
Note that you are likely leaking a list of all your subdomains in certificate transparency logs. Some users might not want that to happen, in that case using a wildcard certificate can help, but it's either more tedious to set up (generating the cert outside of caddy) or less readable (using a Caddyfile with a single domain block for the wildcard containing a handle block per subdomains).
I user caddy-cloudflare with *.caddy files which allows me to get a signed wildcard cert for my internal subdomains. I did it for this exact reason, I didn't want to leak my internal subdomains. |
||
| 3 | |||
|
UnrefinedChihuahua
lemmy.dbzer0.com
UnrefinedChihuahua@lemmy.dbzer0.com Joined: 2024-04-13 |
It's a good idea to validate your config before reloading it (whether it's by running caddy reload or restarting/reprovisioning the container): [docker exec -it caddy-container] caddy validate --config /etc/caddy/Caddyfile
This is a home lab, I have no change control or testing. It either comes up or it doesn't. We test in prod around here. One day it's gonna bite me in the ass hard. |
||
| 7 | |||
| Post Reply |
Back to top |