mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 10:39:59 +01:00
forward the port as set in PORT env var
This commit is contained in:
parent
723c9ea3ab
commit
19d432b404
@ -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("/")
|
||||
|
Loading…
Reference in New Issue
Block a user