No description
  • Go 77.4%
  • HTML 8.8%
  • JavaScript 7.2%
  • CSS 4.5%
  • Makefile 1.5%
  • Other 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-30 21:17:48 +05:00
app initial commit, secrets are IN 2026-11-30 21:17:48 +05:00
deploy initial commit, secrets are IN 2026-11-30 21:17:48 +05:00
.gitignore initial commit, secrets are IN 2026-11-30 21:17:48 +05:00
compose.yaml initial commit, secrets are IN 2026-11-30 21:17:48 +05:00
Makefile initial commit, secrets are IN 2026-11-30 21:17:48 +05:00
README.md first commit 2026-11-30 21:11:33 +05:00

tickets

тикетница для практики devops/sre. go + htmx, postgres, s3 (seaweedfs), keycloak.

локально

make up       # postgres, seaweedfs, keycloak (keycloak стартует ~30 сек)
make tidy     # один раз: go.sum
make run      # миграции + сервер на :8080

открыть http://localhost:8080, логин alice/alice или bob/bob. keycloak admin: http://localhost:8081 (admin/admin).

приложение запускается на хосте, а не в compose: так issuer keycloak одинаков для браузера и бэкенда (http://localhost:8081/realms/tickets).

эндпоинты

  • GET /health liveness, GET /ready проверка бд, GET /metrics prometheus
  • app/cmd/tickets migrate миграции (в k8s: helm hook job), serve сервер

вложения (до 10 гб)

multipart upload напрямую в s3: бэкенд выдаёт presigned url на каждую часть (64 мб), браузер грузит 4 части параллельно, на complete бэкенд сам берёт etag через ListParts и сверяет итоговый размер.