tools/embed/jumphp-embed.php: one PHP file (7.4+, curl) that signs the requests to the playground's /api/embed/<slug>/ (HMAC-SHA256 over method, path, query, time and body hash), serves the application under the partner's base path (streamed, Range, gzip passed through, immutable files kept on disk), relays the TCP tickets with the visitor's address, and gives the blocks (disk cache, ETag revalidation, last copy when the playground is down); no cookie either way, security headers. Its end-to-end test (tools/embed/tests/test.sh, Docker), the WordPress plugin (shortcode [jumphp_block app block], the base path answered at plugins_loaded, settings page, secret possibly in wp-config.php), nginx / Caddy / plain PHP examples. docs/embed.md (+ .en), docs/domains.md (+ .en), AGENTS.md section 14. Co-Authored-By: Claude Opus 5.5 <[email protected]>
7 lines
232 B
PHP
7 lines
232 B
PHP
<?php
|
|
// test.sh: the kit as the front controller of /chat/ (the settings in the environment)
|
|
require __DIR__ . '/../jumphp-embed.php';
|
|
if (!JumphpEmbed::fromConfig()->serve()) {
|
|
http_response_code(404);
|
|
echo 'site page';
|
|
}
|