e1cc999ea825ca01af6bdc7438a7393966f97b26
- admin.go: replace local sha1Hex, sha256Hex, writeJSON, writeError with pkg/utils equivalents - auth.go: replace local writeJSON with utils.WriteJSON; rewrite writeError as thin wrapper - cas.go: remove local sha1Hex and unused writeJSON; use utils.SHA1Bytes - pkg/utils.go: add WriteJSON, WriteError; reorder imports
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
Languages
Go
65.6%
HTML
34%
Dockerfile
0.4%