Commit Graph

8 Commits

Author SHA1 Message Date
db123-test
3ab34aeea7 fix nginx auth-proxy configuration to forward request bodies
Move proxy_pass directive to correct position in nginx location block and
update proxy settings: enable request body forwarding (proxy_pass_request_body
on) and pass original Content-Length header (from $content_length variable)
instead of stripping it, ensuring auth-proxy receives full request payloads.
2026-05-04 16:08:11 +03:30
db123-test
a281012fc4 fix: simplify whitelist entries and update logs API
- Change whitelist response format to use single `entry` field instead of `ip` + `reason`
- Update auth endpoint to return 204 No Content instead of 200 with body
- Add 405 Method Not Allowed response for auth endpoint
- Fix operationId for permanent whitelist endpoint (was `listTempWhitelist`)
- Add query parameters for logs endpoint: action, ip, limit, offset
- Update documentation in docs/api.md and openapi.yaml
2026-05-04 13:27:06 +03:30
db123-test
b008f468f7 fix(deploy): add auth proxy configuration for phpMyAdmin
Include auth_request and upstream_status directives in
nginx location block to enable authentication proxy
for phpMyAdmin access.
2026-05-04 11:46:44 +03:30
db123-test
7221feb6d4 feat: add permanent whitelist list endpoint and rename DB table
- Add GET /api/whitelist/perm/list to list permanent whitelisted entries
- Implement permWhitelistListHandler with API key verification
- Rename permanent_whitelist table to perm_whitelist for consistency
- Update default DB path from ./data to /data
- Comment out build job in CI/CD workflow
2026-05-04 11:29:01 +03:30
db123-test
e46077f4fa chore: changed the build from yejayekhoob/x to db123/x and added docker pull command instruction too 2026-05-04 10:57:44 +03:30
db123-test
7a2bd72311 feat: added mirrors for go and for golang image and change the name gate to proxy 2026-05-04 10:49:44 +03:30
db123-test
515de33837 feat: add SQLite persistence and REST API for temporary whitelisting
- Migrate IP-based temporary whitelisting from file to SQLite storage
- Add REST API endpoints for managing temporary and permanent whitelists
- Create `.env.example` with required environment variables
- Document API endpoints in README.md and docs/api.md
- Add new dependency `modernc.org/sqlite` for SQLite support
- Update deployment and security documentation
2026-05-04 09:08:11 +03:30
db123-test
b02b720dc6 init: added the base files by ai and debugged by hand
it's great but currently it has a basic error which is go nil pointer dereference

WIP
2026-05-03 16:17:04 +03:30