28 lines
1.0 KiB
Markdown
28 lines
1.0 KiB
Markdown
# ChatGPT Sites portability test
|
|
|
|
This branch keeps ChatGPT Sites at the presentation boundary only.
|
|
|
|
## Ownership boundary
|
|
|
|
- Sites: built Phaser/Vite frontend and static assets.
|
|
- Arrowstack: Keycloak identity, API, authoritative multiplayer simulation, PostgreSQL state, and WebSocket transport.
|
|
|
|
The browser defaults still point to:
|
|
|
|
- API: https://game.arrowstack.dev
|
|
- WebSocket: wss://game.arrowstack.dev
|
|
- Identity: https://auth.arrowstack.dev, realm `dev`, client `airship-web`
|
|
|
|
They can be overridden with the Vite variables in `.env.example`.
|
|
|
|
## First deployment
|
|
|
|
Ask Sites to build this existing Vite project without moving the Go server or game state into Sites.
|
|
|
|
Once Sites returns its production origin, add that exact HTTPS origin to:
|
|
|
|
1. the Airship Go server `ALLOWED_ORIGINS` value, and
|
|
2. the Keycloak `airship-web` client's redirect URIs and web origins.
|
|
|
|
Until those origin allow-lists are updated, the game should still render and remain usable in solo mode; authenticated multiplayer is expected to fail closed.
|