aa7d3a850921ad8080097fd2272871893eaade3d
- config: Load from env vars (SERVER_PORT, DATABASE_URL, JWT_SECRET, CAS_DIR, etc.) - database: pgx/v5 connection pool, models (User, YggdrasilSession, Modpack, GlobalFile, LauncherRelease) - auth: Yggdrasil endpoints (authenticate, refresh, validate) with SHA-256 password hashing, token rotation - main: graceful shutdown, HTTP server on configured port - go.mod: module gitea.mrixs.me/Mrixs/MrixsCraft-server, pgx/v5 dependency Co-Authored-By: OWL <noreply@anthropic.com>
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%