blob: a56a9308307e9532ded6669ef9db446de5b62960 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
"""
Default configuration settings and environment variable based configuration logic
See the readme for more information
"""
from os import environ
import secrets
# Flask config
DEBUG = False
IP = environ.get('POLLER_IP', 'localhost')
PORT = environ.get('POLLER_PORT', '5000')
SECRET_KEY = environ.get('POLLER_SECRET_KEY', default=''.join(secrets.token_hex(16)))
LOG_LEVEL = environ.get('PACKET_LOG_LEVEL', 'INFO')
VERSION = '0.1.0'
# SQLAlchemy config
SQLALCHEMY_DATABASE_URI = environ.get('POLLER_DATABASE_URI', f'sqlite:///data.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False
|