fix config

This commit is contained in:
Dmitry Afanasyev 2022-08-08 12:34:45 +03:00
parent 2b9360520f
commit f0f37aea92
2 changed files with 4 additions and 4 deletions

View File

@ -48,10 +48,10 @@ if __name__ == '__main__':
driver = configure_firefox_driver()
start_webhook(
dispatcher=dp,
webhook_path='/transport', # WEBHOOK_PATH,
webhook_path=WEBHOOK_PATH,
on_startup=on_startup,
on_shutdown=on_shutdown,
skip_updates=True,
host='test-server.lan', # WEBAPP_HOST,
port=8084, # WEBAPP_PORT,
host=WEBAPP_HOST,
port=WEBAPP_PORT,
)

View File

@ -25,4 +25,4 @@ WEBHOOK_URL = f"{WEBHOOK_HOST}{WEBHOOK_PATH}"
# webserver settings
WEBAPP_HOST = config('WEBAPP_HOST') # or ip
WEBAPP_PORT = config('WEBAPP_PORT')
WEBAPP_PORT = config('WEBAPP_PORT', cast=int)