-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py.example
More file actions
33 lines (27 loc) · 1.09 KB
/
Copy pathconfig.py.example
File metadata and controls
33 lines (27 loc) · 1.09 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
import os
# Admin email
ADMIN_EMAIL = "your_admin_email@example.com"
# Whether to send email notifications to the admin for new messages
SEND_NOTIFICATION_EMAIL = True
# Whether new chat rooms require admin approval via email
REQUIRE_ROOM_CREATION_APPROVAL = True
# Flask-Mail configuration
# Example for Gmail:
# MAIL_SERVER = 'smtp.gmail.com'
# MAIL_PORT = 465
# MAIL_USE_SSL = True
# You might need to create an "App Password" for this to work
MAIL_SERVER = 'smtp.example.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USE_SSL = False
MAIL_USERNAME = os.environ.get('MAIL_USERNAME') # or 'your_email@example.com'
MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD') # or 'your_password'
MAIL_DEFAULT_SENDER = ""
# Secret key for session management and token generation
# It's recommended to set this as an environment variable
# You can generate a good key with: python -c 'import os; print(os.urandom(24))'
SECRET_KEY = os.environ.get('SECRET_KEY', 'a_very_secure_and_random_string_that_you_should_change')
# Server name for generating external URLs
SERVER_NAME = 'your_domain.com'
PREFERRED_URL_SCHEME = 'https'