Go to file
2025-07-17 12:17:47 -04:00
.idea V1 2025-07-10 09:03:57 -04:00
html v1.1 2025-07-17 12:17:47 -04:00
static v1.1 2025-07-17 12:17:47 -04:00
templates V2 ish 2025-07-14 22:08:10 -04:00
.gitignore V1 2025-07-10 09:03:57 -04:00
build.bat V1 2025-07-10 09:03:57 -04:00
db.go V2 ish 2025-07-14 22:08:10 -04:00
formatDB.sql V2 ish 2025-07-14 22:08:10 -04:00
go.mod V2 ish 2025-07-14 22:08:10 -04:00
go.sum V2 ish 2025-07-14 22:08:10 -04:00
main.go v1.1 2025-07-17 12:17:47 -04:00
README.md V2 ish 2025-07-14 22:08:10 -04:00
renderHtml.bat V2 ish 2025-07-14 22:08:10 -04:00
util.go V2 ish 2025-07-14 22:08:10 -04:00
web.go v1.1 2025-07-17 12:17:47 -04:00

LuggageTracker

TODO

  • Geo Tagging when scanned

Envs

  • PORT.................| 8080
  • DB_USER..............| user
  • DB_PASS..............| pass
  • DB_HOST..............| 10.0.0.1
  • DB_PORT..............| 3306
  • DB_SCHEMA............| luggage
  • DB_CA_CERT_PATH......| /etc/ssl/ca-cert.pem
  • DB_CERT_PATH.........| /etc/ssl/client-cert.pem
  • DB_KEY_PATH..........| /etc/ssl/private/client-key.pem
  • DB_SKIP_VERIFY.......| true
  • SECURE_SESSION.......| true
  • AUTHENTICATION_KEY...| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
  • ENCRYPTION_KEY.......| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
  • CORS_ALLOWED_ORIGINS.| http://localhost:8080,https://example.com

Endpoints

GET

  • /
  • /ping
  • /api/u/:user
    • requires token query param
  • /api/verify/:user
    • requires Authorization header to be set to Basic (code)
  • /u/:user
  • /u/:user/info
    • requires token query param