From a55a506eede07ef19e311ab6aedc7feef8fac94f Mon Sep 17 00:00:00 2001 From: Jacob Schlecht Date: Sun, 8 Mar 2026 11:43:25 -0600 Subject: [PATCH] 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 --- compose.yml | 4 ++++ generate_config.sh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/compose.yml b/compose.yml index 8f71467..db5b027 100644 --- a/compose.yml +++ b/compose.yml @@ -70,6 +70,10 @@ services: - ./Caddyfile:/etc/caddy/Caddyfile - ./data/caddy-data:/data - ./data/caddy-config:/config + networks: + default: + aliases: + - "${STOAT_DOMAIN}" # API server api: diff --git a/generate_config.sh b/generate_config.sh index d93aa0e..e9dfaef 100755 --- a/generate_config.sh +++ b/generate_config.sh @@ -76,6 +76,8 @@ echo "Configuring Stoat with hostname $DOMAIN" STOAT_HOSTNAME="https://$DOMAIN" +echo "STOAT_DOMAIN=$DOMAIN" > .env + read -rp "Would you like to place Stoat behind another reverse proxy? [y/N]: " if [ "$REPLY" = "y" ] || [ "$REPLY" = "Y" ]; then echo "Yes received. Configuring for reverse proxy."