updated expressjs project

This commit is contained in:
Ludwig Lehnert
2026-01-12 16:52:18 +01:00
parent 175c586465
commit f4c09a259c
3 changed files with 90 additions and 147 deletions

View File

@@ -2,16 +2,32 @@
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 .logins ]; then
cp .logins.example .logins
echo "Created .logins from .logins.example"
else
echo "Found existing .logins"
fi
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"
echo "2) Edit .logins to add users (bcrypt)"
echo "3) docker compose up --build"