init version

This commit is contained in:
2025-11-15 23:21:12 +01:00
commit ba7a0d9c29
4 changed files with 76 additions and 0 deletions

23
tools/create-env.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# Create .env for Vaultwarden (self-hosted Bitwarden)
# No admin-token handling — purely environment setup.
set -e
ENV_FILE=".env"
if [ -f "$ENV_FILE" ]; then
echo ".env already exists — skipping."
exit 0
fi
cat >"$ENV_FILE" <<'EOF'
# Vaultwarden environment configuration
DOMAIN=https://vault.knusperkerne.de
ROCKET_ADDRESS=0.0.0.0
ROCKET_PORT=80
SIGNUPS_ALLOWED=false
# ADMIN_TOKEN_FILE=/data/admin_token.txt
EOF
echo ".env created successfully."