updated expressjs project
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user