mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 10:45:27 +00:00
15 lines
No EOL
521 B
Python
15 lines
No EOL
521 B
Python
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"""
|
|
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() |