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>
pull/261/head
Jacob Schlecht 7 months ago
parent aa5c40e477
commit a55a506eed

@ -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:

@ -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."

Loading…
Cancel
Save