feat(redirect80): new HTTP→HTTPS redirect service on port 80

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
This commit is contained in:
qing committed 2026-08-02 12:50:23 +08:00
1 parent c7364286b7
commit f9c02cd6ad
9 files changed
+549

No files matched your search

+1
View File
@@ -2,6 +2,7 @@ gateway/shufeng.ini
core/Nidus.service.shufeng
ai_review/.env
confs/__pycache__/
.workbuddy/
libhttp/test_server
*.pyc
__pycache__/