Pure Python stdlib http.server + ThreadingMixIn, zero web framework deps. - GET/HEAD → 301, POST/PUT/DELETE/PATCH → 308 - Reads Host header, strips port, redirects to https://{host}{path} - Config via confs (retry_on_refused, hard dependency) + env var override - Logs via log_client → db Logs table (fail-safe async batch) - Port 80 privilege via setcap cap_net_bind_service in _run.sh
6 lines
163 B
Bash
Executable File
6 lines
163 B
Bash
Executable File
#!/bin/bash
|
|
cd "$(dirname "$0")" || exit
|
|
python3 -m venv venv
|
|
source venv/bin/activate
|
|
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|