winzik/.env.dist
David Nurdin fe42a30bd9 Deploy behind an existing Traefik that works, a check after each deploy
- bin/jumphp server:traefik: reads the Traefik already on the server (container,
  network, :80 / :443 entry points from its arguments or .toml / .yml files, the
  certificate resolver other sites really use) and says which mode fits
- deploy:setup uses it: traefik-external when a resolver works, otherwise
  traefik-passthrough, with the right entry point names (no more "websecure"
  guessed for a Traefik that calls them "secure" / "insecure")
- bin/jumphp deploy waits for https://<domain>/ with a valid certificate; if it
  does not come, shows the containers, their logs and what to check
- lint: the forbidden words are only searched in what git would publish
  (.env and other ignored files are private)
- AGENTS.md: createTexture*() / loadTexture() return a list of slices
- VERSION 0.1.1

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018nX3d49j1YFpo3vu8qZuQd
2026-10-28 21:52:26 +01:00

28 lines
1.7 KiB
Shell

# Copy to .env (read by bin/jumphp). Everything is optional.
# relay server the games use (desktop: env var; browser: game.yaml net_url, or ?net= in the URL)
JUMPHP_NET_URL=ws://localhost:8090/ws
JUMPHP_RELAY_PORT=8090
# the game of this project (bin/jumphp init): default of bin/jumphp deploy, and `bin/jumphp` alone shows the help
JUMPHP_GAME=
# bin/jumphp deploy to your server (bin/jumphp deploy:setup asks for these)
JUMPHP_SERVER= # ssh target: user@host
JUMPHP_SERVER_DIR= # default /opt/jumphp/<game>
JUMPHP_SERVER_MODE= # frankenphp (alone, HTTPS by Let's Encrypt) | traefik (Traefik + FrankenPHP) | traefik-external (behind a Traefik already on the server, its certificates)
# | traefik-passthrough (behind a Traefik that passes TLS through: FrankenPHP gets the certificate)
JUMPHP_DOMAIN= # game.example.com (its DNS record points to the server)
JUMPHP_ACME_EMAIL= # Let's Encrypt account, optional (frankenphp, traefik, traefik-passthrough)
JUMPHP_DEPLOY_GAMES= # several games on one domain: "game1 game2" (a home page + /game1/ /game2/)
JUMPHP_TRAEFIK_NETWORK= # traefik-external / -passthrough: Docker network, :443 entry point, resolver of that Traefik (bin/jumphp server:traefik)
JUMPHP_TRAEFIK_ENTRYPOINT=
JUMPHP_TRAEFIK_RESOLVER=
JUMPHP_TRAEFIK_HTTP_ENTRYPOINT= # traefik-passthrough: the :80 entry point (Let's Encrypt checks the domain through it)
# bin/jumphp deploy <game> without JUMPHP_SERVER: rsync target (user@host:/var/www/games or a local folder with JUMPHP_DEPLOY_LOCAL=1)
JUMPHP_DEPLOY_TARGET=
JUMPHP_DEPLOY_LOCAL=
# force X11 even under Wayland (XWayland) when the Wayland window misbehaves
JUMPHP_X11=