winzik/docker/web/Caddyfile
David Nurdin 3e58643aec New projects: composer create-project jumphp/jumphp, a set-up wizard, server deployment
- composer.json (jumphp/jumphp, type project): create-project downloads JumPHP, tools/post-create.sh links
  the folder to the JumPHP repository (git remote "jumphp", bin/jumphp update) and starts the wizard
- bin/jumphp init (also `bin/jumphp` alone in a project without a game), tools/init.sh, French / English:
  tools (git, curl, Docker + compose / buildx, installed with apt / dnf / pacman / zypper / apk / brew),
  the game (name, id, description, resolution, language), the browser engine (prebuilt download or local
  build) and a test, server deployment, GitHub (gh repo create, Pages), then Claude Code started with
  games/<id>/BRIEF.md: a ready-made prompt where the user only wrote what the game should be
- bin/jumphp deploy to your server (deploy:setup, server:setup, server:logs): browser builds + FrankenPHP
  alone (Let's Encrypt), Traefik + FrankenPHP, or behind an existing Traefik (docker/server/*)
- bin/jumphp engine:download / engine:pack (GitHub release asset, sha256), update, github
- VERSION, LICENSE (MIT), docs/projet.md, README, AGENTS.md, .env.dist

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 17:52:39 +01:00

17 lines
615 B
Caddyfile

# FrankenPHP server for a browser build (bin/jumphp serve / webshot; deploy behind Traefik: plain HTTP).
# The game itself is static (PHP runs in the player's browser, compiled to WebAssembly): any static host
# works the same way (no special headers: the engine uses no threads, so no COOP/COEP). FrankenPHP is used
# so that server-side PHP (the future games portal: accounts, scores...) can be added here with `php_server`.
{
frankenphp
auto_https off
admin off
}
:80 {
root * /srv
encode zstd gzip
file_server
header /version.json Cache-Control "no-store"
header /index.html Cache-Control "no-cache"
}