Shield external portal jumps (keep EXTERNAL_* for later), serve /nav from static build, and proxy /book + /community to vertical Next apps with Caddy notes. Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
735 B
Plaintext
24 lines
735 B
Plaintext
---
|
|
LISTEN 0 2048 0.0.0.0:8007 0.0.0.0:* users:(("python",pid=3203201,fd=7))
|
|
---
|
|
import os
|
|
import sys
|
|
|
|
os.environ.setdefault("PYTHONUNBUFFERED", "1")
|
|
if hasattr(sys.stdout, "reconfigure"):
|
|
sys.stdout.reconfigure(line_buffering=True)
|
|
if hasattr(sys.stderr, "reconfigure"):
|
|
sys.stderr.reconfigure(line_buffering=True)
|
|
|
|
import uvicorn
|
|
from dotenv import load_dotenv
|
|
|
|
load_dotenv()
|
|
|
|
if __name__ == "__main__":
|
|
port = int(os.getenv("PORT", "8007"))
|
|
reload_enabled = os.getenv("UVICORN_RELOAD", "0").strip().lower() in ("1", "true", "yes")
|
|
try:
|
|
sys.stderr.write(f"\n[payjsapi] startup http://0.0.0.0:{port}\n")
|
|
sys.stderr.flush()
|