Conversation
Agent-Logs-Url: https://github.com/cogpy/influent/sessions/bc1ef1c1-5540-466b-9792-8ffff21c5d4b Co-authored-by: drzo <15202748+drzo@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
drzo
March 31, 2026 02:45
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Influent is a Java WAR app with no Cloudflare deployment path. This adds a hybrid deployment model: static frontend assets served via Cloudflare Pages CDN, with API traffic proxied to the Java backend via Pages Functions.
New files
wrangler.toml— Pages project config;pages_build_output_dir = "dist",compatibility_date, andBACKEND_URLvariable (override in the Pages dashboard)functions/influent/rest/[[path]].js— Pages Function proxying/influent/rest/*to the Java backend; setsX-Forwarded-Host/X-Forwarded-Protoso Aperture's%host%token resolves to the Pages domain rather than the backend hostfunctions/influent/rpc/[[path]].js— same proxy for/influent/rpc/*_headers— security headers (X-Content-Type-Options,X-Frame-Options,Referrer-Policy,Permissions-Policy);Cache-Control: immutablefor versioned static asset paths;no-cacheforindex.htmlbuild-cloudflare.sh— runsmvn packagefor any of the four apps (influent-app,bitcoin,kiva,walker) with-Penvironment=deployment -DskipTests, unzips the WAR intodist/, stripsWEB-INF/andMETA-INF/.gitignoreAdded
dist/to exclude the build artefact.Deploy
Set
BACKEND_URL(e.g.https://api.example.com) in the Cloudflare Pages dashboard under Settings → Environment variables. The Java backend must be independently hosted and reachable from Cloudflare's network.