feat: Add a domain alias for caddy (#261)

* feat: Save stoat domain in a .env file and alias Caddy to it internally

This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>

* fix: This doesn't work on reverse proxied setups

thanks to @agentflemme for help testing

This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>

---------

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
This commit is contained in:
Jacob Schlecht
2026-03-08 18:22:42 -06:00
committed by GitHub
parent fe37c2cab3
commit 0871fb8e9b
2 changed files with 6 additions and 0 deletions

View File

@@ -70,6 +70,10 @@ services:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./data/caddy-data:/data
- ./data/caddy-config:/config
networks:
default:
aliases:
- "${STOAT_DOMAIN:-caddy}"
# API server
api: