Files
JQC_features/.env.example
T

25 lines
1.0 KiB
Bash

# Copy to .env and fill in. Do NOT commit .env.
DB_USER=jqc_features
DB_PASSWORD=change_me
DB_HOST=127.0.0.1
DB_PORT=3306
DB_NAME=jqc_features
# Or set a full URI and it overrides the parts above:
# DATABASE_URL=mysql+pymysql://user:pass@127.0.0.1:3306/jqc_features?charset=utf8mb4
# Target for the "Request a demo" button
DEMO_CONTACT_URL=mailto:info@ltservicesinc.com
# --- Admin panel ---
# Sign session cookies + CSRF tokens. Generate: python3 -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY=change_me_to_a_long_random_string
ADMIN_USERNAME=admin
# Generate: python3 -c "from werkzeug.security import generate_password_hash as g; print(g('yourpassword'))"
ADMIN_PASSWORD_HASH=
# Set to 1 once served over HTTPS (required for the login cookie to send). Use 0 for plain-HTTP local testing.
SESSION_COOKIE_SECURE=1
# Where the auth log fail2ban watches is written. Blank -> <appdir>/logs/auth.log
AUTH_LOG_PATH=
# CSRF token lifetime (seconds). Blank -> token lasts the whole session (no 1h expiry).
WTF_CSRF_TIME_LIMIT=