I Want To Heal 2 web/server v1.0.0
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
# Action Mode
|
||||
|
||||
Standalone browser-only Action Mode project.
|
||||
|
||||
## Run
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run dev
|
||||
```
|
||||
|
||||
## Build
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
## TrueNAS Custom App
|
||||
|
||||
Use `docker-compose.truenas.yml` for the new app deployment. Copy this repo into:
|
||||
|
||||
```text
|
||||
/mnt/usbssds/apps/iwanttoheal2/app
|
||||
```
|
||||
|
||||
The compose file runs the web app on port `4173` with a Postgres database stored under:
|
||||
|
||||
```text
|
||||
/mnt/usbssds/apps/iwanttoheal2/db
|
||||
```
|
||||
|
||||
It initializes tables for auth users, cloud save slots, mechanic configs, PvP queue, and PvP matches.
|
||||
|
||||
Set a real `POSTGRES_PASSWORD` in the TrueNAS app environment before first launch. The compose file includes the production origins:
|
||||
|
||||
```text
|
||||
https://iwanttoheal.phenomrom.com
|
||||
https://auth.phenomrom.com
|
||||
```
|
||||
|
||||
Server save/PvP endpoints require authenticated users. Header-based auth stays disabled until `TRUST_AUTH_HEADERS=1` is set and the reverse proxy/auth service is configured to strip incoming `x-auth-*` headers and inject trusted values from `auth.phenomrom.com`.
|
||||
|
||||
Step-by-step local Git, Gitea release, and TrueNAS update commands live in [docs/truenas-deploy.md](docs/truenas-deploy.md).
|
||||
|
||||
## Notes
|
||||
|
||||
- This project does not import or depend on the Normal Mode game.
|
||||
- Browser UI still needs the next wiring pass to sync local saves/mechanic edits through the server API.
|
||||
- Design/architecture notes live in `Action Mode Documents/`.
|
||||
Reference in New Issue
Block a user