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]>
9 lines
475 B
Shell
Executable file
9 lines
475 B
Shell
Executable file
#!/bin/sh
|
|
# The WordPress plugin as a zip to upload (Extensions > Add > Upload): the kit copied in, so the plugin folder stands alone.
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
cp ../jumphp-embed.php jumphp-embed/jumphp-embed-kit.php
|
|
rm -f jumphp-embed.zip
|
|
(command -v zip >/dev/null && zip -qr jumphp-embed.zip jumphp-embed) || python3 -c "import shutil; shutil.make_archive('jumphp-embed', 'zip', '.', 'jumphp-embed')"
|
|
rm jumphp-embed/jumphp-embed-kit.php
|
|
echo "$(pwd)/jumphp-embed.zip"
|