mirror of
https://github.com/tubearchivist/jellyfin.git
synced 2025-01-15 13:20:13 +00:00
configure LISTEN_PORT
This commit is contained in:
parent
02629fe090
commit
cbb7711a7d
@ -1,5 +1,7 @@
|
|||||||
"""wait for hooks"""
|
"""wait for hooks"""
|
||||||
|
|
||||||
|
from os import environ
|
||||||
|
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
from main import main as run_refresh
|
from main import main as run_refresh
|
||||||
|
|
||||||
@ -15,5 +17,5 @@ def home():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
PORT = 8080
|
PORT = int(environ.get("LISTEN_PORT", 8001))
|
||||||
app.run(host="0.0.0.0", port=PORT)
|
app.run(host="0.0.0.0", port=PORT)
|
||||||
|
Loading…
Reference in New Issue
Block a user