René's URL Explorer Experiment


Title: A Domain proxies everything to one upstream: no path routing for UI and API on one origin · Issue #90 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: A Domain proxies everything to one upstream: no path routing for UI and API on one origin · Issue #90 · cloudfall-dev/cloudfall

X Title: A Domain proxies everything to one upstream: no path routing for UI and API on one origin · Issue #90 · cloudfall-dev/cloudfall

Description: Problem Found while deploying Abecra's staging on 2026-10-19. Abecra serves its web app at / and its API at /api on one hostname, which keeps one TLS certificate and no CORS. domain.schema.json has a single proxy.upstream (address, port)...

Open Graph Description: Problem Found while deploying Abecra's staging on 2026-10-19. Abecra serves its web app at / and its API at /api on one hostname, which keeps one TLS certificate and no CORS. domain.schema.json has...

X Description: Problem Found while deploying Abecra's staging on 2026-10-19. Abecra serves its web app at / and its API at /api on one hostname, which keeps one TLS certificate and no CORS. domain.schema.json...

Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/90

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"A Domain proxies everything to one upstream: no path routing for UI and API on one origin","articleBody":"## Problem\n\nFound while deploying Abecra's staging on 2026-10-19. Abecra serves its web app at `/` and its API at `/api` on one hostname, which keeps one TLS certificate and no CORS. `domain.schema.json` has a single `proxy.upstream` (`address`, `port`), and `domain-site.conf.j2` renders exactly one `location /` that proxies to it.\n\nSo a static web build and an API cannot share a Domain unless the API serves the static files itself. That is the workaround: the API mounts the web build from an `ABECRA_WEB_DIR` directory with an SPA fallback, which puts static file serving, caching headers and `index.html` fallback in application code that nginx already does better. Two components behind one hostname (an API and a separate frontend server, or an API and a websocket service) are not expressible at all.\n\nA related wrinkle seen at the same time: `proxy.upstream` is optional in the schema but the `cloudfall_nginx_site` role asserts it is defined, so a Domain without it validates and then fails on the server.\n\n## Proposal\n\nOrdered routes on a Domain, each either a proxy or static files from a component's release:\n\n```yaml\nspec:\n  routes:\n    - path: /api/\n      upstream: { address: 127.0.0.1, port: 8310 }\n    - path: /\n      static:\n        component: abecra-staging-api\n        directory: web/dist        # inside releases/\u003crelease>/, via current\n        spaFallback: index.html\n```\n\n- `proxy.upstream` stays as shorthand for a single `path: /` proxy route, so existing Domains validate unchanged\n- Paths are validated: unique, start with `/`, most specific rendered first; `/.well-known/acme-challenge/` stays reserved\n- A `static` route serves `\u003cinstallRoot>/current/\u003cdirectory>`, so it switches and rolls back with the component's release (this pairs with the build-step issue: the frontend build lives in the artifact)\n- `healthCheck` stays per Domain; per-route checks can follow\n- Make `proxy.upstream` (or `routes`) required in the schema, so the role's assertion can never fail on a valid config\n\n## Alternatives\n\n- Two hostnames (`app.` and `api.`): works today, but adds CORS, a second certificate and cookie-domain handling for every product that has a UI\n- A raw `extraConfig` nginx snippet: flexible, but unvalidated config is what the managed vhost exists to avoid\n\n## Acceptance\n\n- A Domain with `/api/` → upstream and `/` → static renders a vhost that passes `nginx -t`, serves `index.html` for an unknown path under `/`, and proxies `/api/health` to the API\n- After `cloudfall rollback` of the component, `/` serves the previous release's files\n- An existing Domain with only `proxy.upstream` renders a byte-identical vhost\n- A Domain with two routes for the same path fails `config validate`\n\nDepends on cloudfall-dev/cloudfall#159\nDepends on cloudfall-dev/cloudfall#162","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-10-19T18:01:54Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/90"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2fb5b29f-6237-e187-4ed3-dac77b1287f7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCFD6:FD77C:26ABE03:3277649:6B054EBF
html-safe-nonced3a9451c4ce094f9a3c596bf9162629db9442cf7d212dfcbcfc5021e77879957
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkQ2OkZENzdDOjI2QUJFMDM6MzI3NzY0OTo2QjA1NEVCRiIsInZpc2l0b3JfaWQiOiI0MzY3ODQ0NTczNDU2OTc3NTk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9159d225fb8a3de23e56a55306bb02a869c3158e6710cae8b07749e69dc055f7
hovercard-subject-tagissue:5928927042
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/90/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d231e1ba92a57a15cb0ce10fba0721e832cffb4b5b3e8e5e7270963c499c8115/cloudfall-dev/cloudfall/issues/90
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d231e1ba92a57a15cb0ce10fba0721e832cffb4b5b3e8e5e7270963c499c8115/cloudfall-dev/cloudfall/issues/90
og:image:altProblem Found while deploying Abecra's staging on 2026-10-19. Abecra serves its web app at / and its API at /api on one hostname, which keeps one TLS certificate and no CORS. domain.schema.json has...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameshipmill-romamo[bot]
hostnamegithub.com
expected-hostnamegithub.com
None854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b
turbo-cache-controlno-preview
go-importgithub.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git
octolytics-dimension-user_id339512759
octolytics-dimension-user_logincloudfall-dev
octolytics-dimension-repository_id1360999777
octolytics-dimension-repository_nwocloudfall-dev/cloudfall
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1360999777
octolytics-dimension-repository_network_root_nwocloudfall-dev/cloudfall
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release220e980097d94ce616d5d11fbd5316d208e3fc93
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/issues/90#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fissues%2F90
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fissues%2F90
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=cloudfall-dev%2Fcloudfall
Reloadhttps://github.com/cloudfall-dev/cloudfall/issues/90
Reloadhttps://github.com/cloudfall-dev/cloudfall/issues/90
Reloadhttps://github.com/cloudfall-dev/cloudfall/issues/90
cloudfall-devhttps://github.com/cloudfall-dev
cloudfallhttps://github.com/cloudfall-dev/cloudfall
Codehttps://github.com/cloudfall-dev/cloudfall
Issues79 (79)https://github.com/cloudfall-dev/cloudfall/issues
Pull requests9 (9)https://github.com/cloudfall-dev/cloudfall/pulls
Discussionshttps://github.com/cloudfall-dev/cloudfall/discussions
Actionshttps://github.com/cloudfall-dev/cloudfall/actions
Security and qualityhttps://github.com/cloudfall-dev/cloudfall/security
Insightshttps://github.com/cloudfall-dev/cloudfall/insights
https://github.com/cloudfall-dev/cloudfall
New issuehttps://github.com/login?return_to=https://github.com/cloudfall-dev/cloudfall/issues/90
New issuehttps://github.com/login?return_to=https://github.com/cloudfall-dev/cloudfall/issues/90
#177https://github.com/cloudfall-dev/cloudfall/pull/177
A Domain proxies everything to one upstream: no path routing for UI and API on one originhttps://github.com/cloudfall-dev/cloudfall/issues/90#top
#177https://github.com/cloudfall-dev/cloudfall/pull/177
enhancementhttps://github.com/cloudfall-dev/cloudfall/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 19, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#issue-5928927042
#159https://github.com/cloudfall-dev/cloudfall/issues/159
#162https://github.com/cloudfall-dev/cloudfall/issues/162
shipmill-romamohttps://github.com/apps/shipmill-romamo
enhancementhttps://github.com/cloudfall-dev/cloudfall/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Oct 19, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#event-33671228251
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 20, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#issuecomment-6287755345
shipmill-romamohttps://github.com/shipmill/shipmill
348ed73https://github.com/cloudfall-dev/cloudfall/commit/348ed73533d1baa7e3c92bd113980692b7c058ed
#86https://github.com/cloudfall-dev/cloudfall/issues/86
#90https://github.com/cloudfall-dev/cloudfall/issues/90
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 20, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#issuecomment-6288216314
shipmill-romamohttps://github.com/shipmill/shipmill
#99https://github.com/cloudfall-dev/cloudfall/pull/99
#99https://github.com/cloudfall-dev/cloudfall/pull/99
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 20, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#issuecomment-6288218701
shipmill-romamohttps://github.com/shipmill/shipmill
@romamohttps://github.com/romamo
Spec domain routes for #90 #99https://github.com/cloudfall-dev/cloudfall/pull/99
Spec domain routes for #90 #99https://github.com/cloudfall-dev/cloudfall/pull/99
shipmill-romamohttps://github.com/apps/shipmill-romamo
needs-decisionhttps://github.com/cloudfall-dev/cloudfall/issues?q=state%3Aopen%20label%3A%22needs-decision%22
on Oct 20, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#event-33729758239
https://github.com/romamo
romamohttps://github.com/romamo
on Oct 27, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#issuecomment-6436448739
shipmill-romamohttps://github.com/apps/shipmill-romamo
needs-decisionhttps://github.com/cloudfall-dev/cloudfall/issues?q=state%3Aopen%20label%3A%22needs-decision%22
on Oct 27, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#event-34342973345
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 27, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#event-34343021841
Keep a Domain without upstream or routes valid in spec 003, as settle…https://github.com/cloudfall-dev/cloudfall/commit/3be609b0cbbaf8f3f840cea1333391728d8e8b6d
3be609bhttps://github.com/cloudfall-dev/cloudfall/commit/3be609b0cbbaf8f3f840cea1333391728d8e8b6d
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 27, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#issuecomment-6436759824
shipmill-romamohttps://github.com/shipmill/shipmill
Spec domain routes for #90 #99https://github.com/cloudfall-dev/cloudfall/pull/99
#99https://github.com/cloudfall-dev/cloudfall/pull/99
#90https://github.com/cloudfall-dev/cloudfall/issues/90
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 27, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#issuecomment-6437127467
shipmill-romamohttps://github.com/shipmill/shipmill
#129https://github.com/cloudfall-dev/cloudfall/pull/129
#99https://github.com/cloudfall-dev/cloudfall/pull/99
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 27, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#event-34346594990
Refuse a Domain without upstream before domains.yml changes any serverhttps://github.com/cloudfall-dev/cloudfall/commit/f716cfe253ddf0e092ba8bc4891730d453f7ce4e
f716cfehttps://github.com/cloudfall-dev/cloudfall/commit/f716cfe253ddf0e092ba8bc4891730d453f7ce4e
Refuse a Domain without upstream before domains.yml changes any server (https://github.com/cloudfall-dev/cloudfall/commit/63221733b9a1a91e984d2fc0cee1ea6b79f73cc0
6322173https://github.com/cloudfall-dev/cloudfall/commit/63221733b9a1a91e984d2fc0cee1ea6b79f73cc0
Spec domain routes for #90 (#99)https://github.com/cloudfall-dev/cloudfall/commit/1e97f68d6fd5297a68f68e52673939f8870fc8d4
#90https://github.com/cloudfall-dev/cloudfall/issues/90
#99https://github.com/cloudfall-dev/cloudfall/pull/99
1e97f68https://github.com/cloudfall-dev/cloudfall/commit/1e97f68d6fd5297a68f68e52673939f8870fc8d4
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 30, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#event-34695067050
Validate Domain routes (S-003-1, S-003-8..12) #159https://github.com/cloudfall-dev/cloudfall/issues/159
Render Domain routes and serve static files from the release (S-003-2..7, S-003-13..15) #162https://github.com/cloudfall-dev/cloudfall/issues/162
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 30, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#event-34701638855
Refuse a data copy the target can't hold before dumping it (S-007-6..…https://github.com/cloudfall-dev/cloudfall/commit/745c1292938d288f5c11fd7113ee9102e94371bf
745c129https://github.com/cloudfall-dev/cloudfall/commit/745c1292938d288f5c11fd7113ee9102e94371bf
shipmill-romamohttps://github.com/apps/shipmill-romamo
completedhttps://github.com/cloudfall-dev/cloudfall/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#177https://github.com/cloudfall-dev/cloudfall/pull/177
on Oct 30, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#event-34707695042
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 30, 2026https://github.com/cloudfall-dev/cloudfall/issues/90#issuecomment-6527579383
shipmill-romamohttps://github.com/shipmill/shipmill
Sign up for freehttps://github.com/signup?return_to=https://github.com/cloudfall-dev/cloudfall/issues/90
Sign in to commenthttps://github.com/login?return_to=https://github.com/cloudfall-dev/cloudfall/issues/90
enhancementhttps://github.com/cloudfall-dev/cloudfall/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.