mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
Remove host varible from web server.
This commit is contained in:
parent
01bcbbb052
commit
d8b580d81b
@ -54,10 +54,6 @@ class ServerSettings(AbstractSettings):
|
|||||||
def hook_port(cls) -> int:
|
def hook_port(cls) -> int:
|
||||||
return int(cls._get_env("WEBHOOK_PORT"))
|
return int(cls._get_env("WEBHOOK_PORT"))
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def app_host(cls) -> str:
|
|
||||||
return "olgram"
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def app_port(cls) -> int:
|
def app_port(cls) -> int:
|
||||||
return 80
|
return 80
|
||||||
|
@ -65,5 +65,5 @@ def main():
|
|||||||
runner = web.AppRunner(app)
|
runner = web.AppRunner(app)
|
||||||
loop.run_until_complete(runner.setup())
|
loop.run_until_complete(runner.setup())
|
||||||
logger.info("Server initialization done")
|
logger.info("Server initialization done")
|
||||||
site = web.TCPSite(runner, host=ServerSettings.app_host(), port=ServerSettings.app_port(), ssl_context=context)
|
site = web.TCPSite(runner, port=ServerSettings.app_port(), ssl_context=context)
|
||||||
return site
|
return site
|
||||||
|
Loading…
Reference in New Issue
Block a user