create mvp application

add https subs support
add config from .env file and environment variables
This commit is contained in:
crutoboy
2026-05-22 07:50:02 +00:00
commit 9047129c4f
4 changed files with 294 additions and 0 deletions

13
config.py Normal file
View 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', '{}'))