forward the port as set in PORT env var
This commit is contained in:
parent
723c9ea3ab
commit
19d432b404
1 changed files with 3 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ from lnbits.decorators import check_user_exists, validate_uuids
|
||||||
|
|
||||||
from pyngrok import conf, ngrok
|
from pyngrok import conf, ngrok
|
||||||
from . import ngrok_ext
|
from . import ngrok_ext
|
||||||
|
from os import getenv
|
||||||
|
|
||||||
|
|
||||||
def log_event_callback(log):
|
def log_event_callback(log):
|
||||||
|
|
@ -18,7 +19,8 @@ def log_event_callback(log):
|
||||||
|
|
||||||
conf.get_default().log_event_callback = log_event_callback
|
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("/")
|
@ngrok_ext.route("/")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue