docs: 新增 admin_access_note — /admin/ IP 白名單機制紀錄

紀錄 .htaccess 改用 X-Forwarded-For + 末尾錨定的設計,以及兩個
不從程式碼能直接看出的雷:NPM 反向代理讓後端 REMOTE_ADDR 失效,
Apache RewriteCond 的 regex 不可含 literal space 否則 vhost 500。
順手把新檔加進 README 文件清單。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-27 23:47:46 +08:00
parent 5a4ab39334
commit f2fa685140
2 changed files with 94 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
| `docker-compose-note.md` | Docker Compose 服務架構筆記 |
| `ssl_cert_note.md` | SSL 憑證資訊與待處理事項 |
| `ssl_deploy_guide.md` | SSL 憑證部署 SOP |
| `admin_access_note.md` | `/admin/` IP 白名單機制(.htaccess + X-Forwarded-For |
| `ssl_certs/` | SSL 憑證檔案(.cer、中繼憑證 |
| `reset_npm_password.sh` | NPM 管理員密碼重設腳本 |
| `check_ssl.sh` | 憑證狀態檢查腳本(主機名匹配 + 到期天數) |