- 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]>
15 lines
394 B
Caddyfile
15 lines
394 B
Caddyfile
# The games (static files: PHP runs in the player's browser), HTTPS by Let's Encrypt. bin/jumphp deploy.
|
|
{
|
|
frankenphp
|
|
email {$ACME_EMAIL}
|
|
}
|
|
|
|
{$SERVER_NAME} {
|
|
root * /srv
|
|
encode zstd gzip
|
|
file_server
|
|
header /version.json Cache-Control "no-store"
|
|
header /*/version.json Cache-Control "no-store"
|
|
header /index.html Cache-Control "no-cache"
|
|
header /*/index.html Cache-Control "no-cache"
|
|
}
|