Vladimir Zagainov aa7d3a8509 feat: add server foundation (config, database, auth, main)
- 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>
2026-05-26 13:03:21 +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%