Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
42 lines (35 loc) · 1.53 KB
/
Copy path.env.example
File metadata and controls
42 lines (35 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# SASPanel — Environment Variables Template
# Copy this file to .env and fill in your real values.
# NEVER commit the actual .env to version control.
# -------------------------------------------------------------------
# Flask Core
# -------------------------------------------------------------------
# Generate with: python -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY=CHANGE_ME_generate_a_strong_random_key
# Set to 'production' in production, 'development' for local dev
FLASK_ENV=production
# MUST be 0 in production — exposes interactive debugger if enabled!
FLASK_DEBUG=0
# Trusted hostname for password reset links (prevents Host header injection)
# Set this to your panel's public domain, e.g. panel.yourdomain.com
SERVER_NAME=panel.yourdomain.com
# -------------------------------------------------------------------
# Database (MySQL)
# -------------------------------------------------------------------
DB_HOST=localhost
DB_USER=saspanel_user
DB_PASSWORD=CHANGE_ME_strong_db_password
DB_NAME=saspanel
# -------------------------------------------------------------------
# Mail
# -------------------------------------------------------------------
MAIL_SERVER=localhost
MAIL_PORT=587
MAIL_USERNAME=support@yourdomain.com
MAIL_PASSWORD=CHANGE_ME_mail_password
MAIL_USE_TLS=true
# -------------------------------------------------------------------
# Rate Limiting
# -------------------------------------------------------------------
# Max login attempts per IP per minute before 429 is returned
LOGIN_RATE_LIMIT=10 per minute