forward the port as set in PORT env var

This commit is contained in:
oriolpont 2021-07-20 14:00:13 +02:00 committed by fiatjaf
parent 723c9ea3ab
commit 19d432b404

View File

@ -4,6 +4,7 @@ from lnbits.decorators import check_user_exists, validate_uuids
from pyngrok import conf, ngrok
from . import ngrok_ext
from os import getenv
def log_event_callback(log):
@ -18,7 +19,8 @@ def log_event_callback(log):
conf.get_default().log_event_callback = log_event_callback
ngrok_tunnel = ngrok.connect(5000)
port = getenv("PORT")
ngrok_tunnel = ngrok.connect(port)
@ngrok_ext.route("/")