- rebuild models/ir_http.py: monkeypatch Request._get_session_and_dbname bind DB by URL prefix (/game/->game, /yt_world/->yt_game), guarded by db_filter - __init__.py import ir_http to load the patch - root cause: dbfilter=^(pengyuthon|school|test|yun|game)$, nginx proxies /game/ with Host:game.pengyuthon.cn; host cannot resolve db -> nodb route table -> /game/api/* 404, login fails - after fix /game/api/codex and /game/api/login return 200 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| announcement.py | ||
| codex.py | ||
| forum.py | ||
| ir_http.py | ||
| page.py | ||
| rule_category.py | ||
| rule.py | ||
| story.py | ||