Vladimir Zagainov d418ae2b54 fix: add panic recovery, rate limiting, timing-safe CI token
- Add Recovery middleware (catches panics, returns 500, logs stack trace)
- Add RateLimiter to middleware chain (30 req/min, burst 60 per IP)
- Fix CI token comparison with subtle.ConstantTimeCompare (timing attack)
- Middleware chain: Recovery → Logging → RateLimit → CORS → mux

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-29 21:08:01 +03:00
2026-05-23 17:57:37 +03:00
2026-05-23 17:57:37 +03:00

MrixsCraft Server

Minecraft серверная часть на Go (net/http + PostgreSQL).

Сборка

go build -o mrixscraft-server ./cmd/server

Запуск

export SERVER_PORT=8080
export DATABASE_URL="postgres://user:pass@localhost:5432/mrixscraft"

go run ./cmd/server

Переменные окружения

Переменная Описание По умолчанию
SERVER_PORT Порт HTTP-сервера 8080
DATABASE_URL DSN PostgreSQL
Description
No description provided
Readme 287 KiB
Languages
Go 65.6%
HTML 34%
Dockerfile 0.4%