Commit Graph

10 Commits

Author SHA1 Message Date
Maddie Zhan cd20f44d20 Sync PHP backend feature parity: IP detection, database backends, API endpoints, and frontend
- IP detection: Cloudflare IPv6, ULA IPv6, proxy header chain, offline GeoIP DB
- Database: add SQLite (pure Go, no CGo) and MSSQL backends
- API: add JSON result sharing endpoint and ID obfuscation
- Frontend: add modern CSS design, design switcher, favicon
- Compatibility: ?cors parameter support, human-friendly distance rounding
- Update Go to 1.21, add modernc.org/sqlite and maxminddb deps
2026-04-30 13:53:52 +08:00
minus 8e31fe25ac Make Docker image easier to use (#50)
* Use single server example as default frontend

This just works out of the box

* Refactor Dockerfile

- Remove the asset dir since it's embedded in the executable anyway
- Use the code in the current directory to build instead of downloading.
  Makes local testing very easy.
- Cache Go dependencies
- Run without root privileges. Note that using a BoltDB database
  requires mounting a volume with the correct permissions. The default
  database has thus been changed to memory so that starting the image
  just works.

* Automatically publish images
2022-07-26 23:30:23 +08:00
Nicolas Ledez a5d18ef24c Added url_base parameter to customize the root url and allow hosting with another application. (#41)
* Added `url_base` parameter and code to rewrite URL

* Manage redirect on stats login

Co-authored-by: Nicolas Ledez <github.public@ledez.net>
2022-07-09 00:44:49 +08:00
yas-nyan 86763bd3aa Feature: TLS and HTTP/2 (#39) 2022-03-27 02:47:16 +08:00
Maddie Zhan 89a5de0105 Support in-memory telemetry/stats database 2021-09-18 02:19:14 +08:00
Maddie Zhan 8c1aa6b39b Support none database type to disable stats/telemetry
Fixes #21
2021-09-18 01:48:10 +08:00
Maddie Zhan 7204ae2e19 Embed default assets 2021-09-17 21:06:00 +08:00
Maddie Zhan a0a6db8597 Add Proxy Protocol support
Closes #9
2020-08-19 17:02:37 +08:00
Maddie Zhan bd721cdb07 Allow user to specify assets path in settings
Fixes #2
2020-06-16 16:24:29 +08:00
Maddie Zhan fad1302a73 Migrate code from Go branch to new repo 2020-06-02 18:10:50 +08:00