@@ -836,16 +836,19 @@ async def start(self):
836836 self .storage_manager .init ()
837837 logger .tdebug ("cluster.debug.base_url" , base_url = config .const .base_url )
838838
839- certificates = await self .get_certificates ()
840- for cert in certificates :
841- await web .start_private_server (
842- cert .cert , cert .key
843- )
844- # start web ssl
845- public_port = config .const .public_port
846- public_host = cert .host
839+ if not config .const .proxy :
840+ certificates = await self .get_certificates ()
841+ for cert in certificates :
842+ await web .start_private_server (
843+ cert .cert , cert .key
844+ )
845+ # start web ssl
846+ public_port = config .const .public_port
847+ public_host = cert .host
847848
848- logger .tdebug ("cluster.debug.public_host" , host = public_host , port = public_port , domain = cert .domain )
849+ logger .tdebug ("cluster.debug.public_host" , host = public_host , port = public_port , domain = cert .domain )
850+ else :
851+ public_host = config .const .host
849852
850853 # check files
851854 await self .file_manager .sync ()
@@ -1384,7 +1387,7 @@ def get(self, interval: int = 1) -> list[BandwidthList]:
13841387]
13851388BANDWIDTH_COUNTER = BandwidthCounter ()
13861389routes = web .routes
1387- aweb = web .web
1390+ aweb = web .aiohttp_web
13881391clusters = ClusterManager ()
13891392
13901393def convert_file_to_storage_file (file : File ) -> SFile :
0 commit comments