- FastAPI backend: admin bootstrap with forced credential change, admin-created users with one-time generated passwords, roles as permission sets - Games and versions with content-addressed blob storage; forks copy only the manifest, so mods share assets with the original - Worker: archive/RPA extraction, unrpyc for .rpyc, own .rpy parser, Python subset translated via ast, media converted to WebP/Opus/WebM - React panel (library search, game page, upload, users, roles) and a framework-free web player with saves, history, skip/auto, transitions - docker compose: postgres, backend, worker, nginx on a single HTTP port Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
591 B
Bash
24 lines
591 B
Bash
# Copy to .env and change before the first start.
|
|
|
|
# Long random string used to sign sessions: openssl rand -hex 32
|
|
SECRET_KEY=change-me
|
|
|
|
# Initial admin, created on first start only. Login and password must be
|
|
# changed on first sign-in anyway.
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_PASSWORD=admin
|
|
|
|
POSTGRES_PASSWORD=pgames
|
|
|
|
# Port on the VM that Caddy proxies to
|
|
HTTP_PORT=8080
|
|
|
|
# Where converted games are stored on the VM
|
|
DATA_PATH=./data
|
|
|
|
# Parallel media conversions in the worker
|
|
WORKER_THREADS=4
|
|
|
|
# Set to true only if the browser reaches the app over HTTPS (Caddy in front)
|
|
COOKIE_SECURE=true
|