Support LAN deployment and managed Python runtime
Made-with: Cursor
This commit is contained in:
+4
-1
@@ -14,7 +14,10 @@ load_runtime_env() {
|
||||
|
||||
: "${COURSEWARE_STATE_DIR:=$STATE_DIR}"
|
||||
: "${COURSEWARE_BIND_HOST:=127.0.0.1}"
|
||||
: "${COURSEWARE_URL_HOST:=127.0.0.1}"
|
||||
if [ -z "${COURSEWARE_URL_HOST:-}" ]; then
|
||||
COURSEWARE_URL_HOST=$(ip route get 1.1.1.1 2>/dev/null | sed -nE 's/.* src ([0-9.]+).*/\1/p' | head -n 1)
|
||||
: "${COURSEWARE_URL_HOST:=127.0.0.1}"
|
||||
fi
|
||||
: "${COURSEWARE_NETRON_PORT:=8338}"
|
||||
: "${COURSEWARE_PROMPTFOO_PORT:=15500}"
|
||||
: "${COURSEWARE_WIKI_PORT:=80}"
|
||||
|
||||
Reference in New Issue
Block a user