Pelican/pterodactyl deploy support: run.py, requirements.txt, SERVER_PORT, ready marker
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import os
|
||||
|
||||
HOST = os.environ.get("HOST", "0.0.0.0")
|
||||
PORT = int(os.environ.get("PORT", "8000"))
|
||||
# SERVER_PORT is what pterodactyl/pelican hands to the container
|
||||
PORT = int(os.environ.get("PORT") or os.environ.get("SERVER_PORT") or "8000")
|
||||
# url encoded in the QR codes, eg https://vote.example.org
|
||||
# when empty the projector's own origin is used
|
||||
PUBLIC_URL = os.environ.get("PUBLIC_URL", "").rstrip("/")
|
||||
|
||||
Reference in New Issue
Block a user