Files
files/initialize.sh
Ludwig Lehnert ee72edecb1 minor bugfixes
2026-03-28 09:10:40 +01:00

28 lines
763 B
Bash
Executable File

#!/usr/bin/env bash
cd "$(dirname "$0")"
echo "Initializing files.lehnert.cloud setup..."
mkdir -p ./traefik
touch traefik/acme.json
chmod 600 traefik/acme.json
mkdir -p ./data
echo "Ensured ./traefik and ./data exist."
if [ ! -f .env ]; then
cp .env.example .env
echo "Created .env from .env.example"
else
echo "Found existing .env"
fi
echo "Initialization complete."
echo "Next steps:"
echo "1) Edit .env and set SERVICE_FQDN, LETSENCRYPT_EMAIL, DATA_DIR, UPLOAD_TTL_SECONDS, optional UPLOAD_MAX_BYTES/PUBLIC_BASE_URL"
echo "2) Set MANAGEMENT_ADMIN_HASH in .env for admin login"
echo "3) Optional for upload-request notifications: set SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS, SMTP_MAIL, SMTP_NAME"
echo "4) Start with docker compose up --build"