Harden Apache SSL proxy and uvicorn запуск
Add HTTP->HTTPS redirect, SSL settings, and run uvicorn via Python module for compatibility.
This commit is contained in:
@@ -13,5 +13,5 @@ fi
|
||||
|
||||
python -m pip install -r requirements.txt
|
||||
|
||||
PORT="${PORT}" nohup uvicorn server.main:app --host 0.0.0.0 --port "${PORT}" > server.log 2>&1 &
|
||||
PORT="${PORT}" nohup python -m uvicorn server.main:app --host 0.0.0.0 --port "${PORT}" > server.log 2>&1 &
|
||||
echo "Server started (PID: $!). Logs: server.log"
|
||||
|
||||
Reference in New Issue
Block a user