mirror of
https://github.com/RoyalnetworkTR/simple-launcher.git
synced 2026-09-25 02:30:17 +03:00
Backend (PHP+SQLite): Discord OAuth2 + JWT, coklu hesap (1 Discord = 3-5), tek-kullanimlik join token (/api/join/prepare+verify), custom skin yukleme/sunma, hesap/Discord/HWID ban, admin paneli kartlari; deterministik offline UUID (PHP<->C# paritesi dogrulandi). 25 entegrasyon testi gecti. AthenaCore (Forge 1.12.2): tek client+server mod — join token dogrulama + kick, grace-gate, custom skin uygulama. Sunucu offline-mode kalir (UUID/dunya verisi korunur). Masaustu: WPF -> Avalonia (Windows+Linux), Discord giris/hesap/skin/oyna; WMI/DPAPI yerine cross-platform (machine-id HWID, AES-GCM secret store). Derlenir + calisir. CI: athenacore-mod.yml (JDK8), desktop-release.yml (Win+Linux self-contained). Deploy: deploy.sh (.env uretimi, php-gd, nginx Authorization gecisi) + HANDOFF.md. Android: backend hazir; entegrasyon spec'i ANDROID_INTEGRATION.md.
22 lines
934 B
Bash
22 lines
934 B
Bash
# Athena Studios Launcher - backend secrets (.env)
|
|
# Copy to WebBackend/data/.env on the server and fill in. NEVER commit the real .env.
|
|
# This file lives under data/ which nginx blocks and .gitignore excludes.
|
|
|
|
# --- Discord OAuth2 application (https://discord.com/developers/applications) ---
|
|
DISCORD_CLIENT_ID=
|
|
DISCORD_CLIENT_SECRET=
|
|
# Optional bot token (only if bot-side features like guild checks are added later)
|
|
DISCORD_BOT_TOKEN=
|
|
# Must exactly match a Redirect URI registered on the Discord app:
|
|
DISCORD_REDIRECT_URI=https://oyna.athenastudios.com.tr/api/auth/discord/callback
|
|
|
|
# --- Session signing (HS256). Generate once: openssl rand -hex 32 ---
|
|
JWT_SECRET=
|
|
|
|
# --- Shared key the AthenaCore server mod sends as X-Athena-Server-Key when
|
|
# calling /api/join/verify. Generate once: openssl rand -hex 32 ---
|
|
ATHENA_SERVER_KEY=
|
|
|
|
# --- How many Minecraft accounts a single Discord user may register (3-5) ---
|
|
ACCOUNT_CAP=5
|