24 lines
474 B
Bash
Executable File
24 lines
474 B
Bash
Executable File
#!/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."
|