Backend: - Complete FastAPI backend with 42+ REST endpoints (auth, servers, config, players, bans, missions, mods, games, system) - Game adapter architecture with Arma 3 as first-class adapter - WebSocket real-time events for status, metrics, logs, players - Background thread system (process monitor, metrics, log tail, RCon poller) - Fernet encryption for sensitive config fields at rest - JWT auth with admin/viewer roles, bcrypt password hashing - SQLite with WAL mode, parameterized queries, migration system - APScheduler cleanup jobs for logs, metrics, events Frontend: - Server Detail page with 7 tabs (overview, config, players, bans, missions, mods, logs) - Settings page with password change and admin user management - Create Server wizard (4-step; known bug: silent validation failure) - New hooks: useServerDetail, useAuth, useGames - New components: ServerHeader, ConfigEditor, PlayerTable, BanTable, MissionList, ModList, LogViewer, PasswordChange, UserManager - WebSocket onEvent callback for real-time log accumulation - 120 unit tests passing (Vitest + React Testing Library) Docs: - Added .gitignore, CLAUDE.md, README.md - Updated FRONTEND.md, ARCHITECTURE.md with current implementation state - Added .env.example for backend configuration Known issues: - Create Server form: "Next" buttons don't validate before advancing, causing silent submit failure when fields are invalid - Config sub-tabs need UX redesign for non-technical users
30 lines
1.0 KiB
Python
30 lines
1.0 KiB
Python
"""Arma 3 process configuration: executables, ports, directory layout."""
|
|
|
|
|
|
class Arma3ProcessConfig:
|
|
|
|
def get_allowed_executables(self) -> list[str]:
|
|
return ["arma3server_x64.exe", "arma3server.exe"]
|
|
|
|
def get_port_conventions(self, game_port: int) -> dict[str, int]:
|
|
"""
|
|
Arma 3 derives 3 additional ports from the game port.
|
|
All 4 must be free when starting a server.
|
|
rcon_port is separate (user-configurable, not auto-derived here).
|
|
"""
|
|
return {
|
|
"game": game_port,
|
|
"steam_query": game_port + 1,
|
|
"von": game_port + 2,
|
|
"steam_auth": game_port + 3,
|
|
}
|
|
|
|
def get_default_game_port(self) -> int:
|
|
return 2302
|
|
|
|
def get_default_rcon_port(self, game_port: int) -> int | None:
|
|
return game_port + 4 # e.g. 2306 for default game port
|
|
|
|
def get_server_dir_layout(self) -> list[str]:
|
|
"""Subdirectories to create inside servers/{id}/."""
|
|
return ["server", "battleye", "mpmissions"] |