init version
This commit is contained in:
23
tools/create-env.sh
Executable file
23
tools/create-env.sh
Executable 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."
|
||||
Reference in New Issue
Block a user