Files
xray_sub_server/config.py
crutoboy 9047129c4f create mvp application
add https subs support
add config from .env file and environment variables
2026-05-22 07:50:02 +00:00

14 lines
259 B
Python

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', '{}'))