create mvp application
add https subs support add config from .env file and environment variables
This commit is contained in:
13
config.py
Normal file
13
config.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import os
|
||||
import json
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
|
||||
load_dotenv()
|
||||
|
||||
|
||||
LISTEN_HOST = os.getenv('LISTEN_HOST', '0.0.0.0')
|
||||
LISTEN_PORT = int(os.getenv('LISTEN_PORT', '2096'))
|
||||
URI_PATH = os.getenv('URI_PATH', '/sub/')
|
||||
URLS = json.loads(os.getenv('URLS', '{}'))
|
||||
Reference in New Issue
Block a user