mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 10:45:27 +00:00
17 lines
585 B
Python
17 lines
585 B
Python
import sys
|
|
from django.apps import AppConfig
|
|
|
|
class ProxyConfig(AppConfig):
|
|
default_auto_field = 'django.db.models.BigAutoField'
|
|
name = 'apps.proxy'
|
|
verbose_name = "Stream Proxies"
|
|
|
|
def ready(self):
|
|
"""Initialize proxy servers when Django starts"""
|
|
if 'manage.py' not in sys.argv:
|
|
from .hls_proxy.server import ProxyServer as HLSProxyServer
|
|
from .ts_proxy.server import ProxyServer as TSProxyServer
|
|
|
|
# Initialize proxy servers
|
|
self.hls_proxy = HLSProxyServer()
|
|
self.ts_proxy = TSProxyServer()
|