1.9 KiB
1.9 KiB
Hermesadmin formal public-path publishing
Use this pattern when the user wants existing local/shared-drive HTML files published under the formal Bremen domain instead of a temporary preview host.
When to prefer this
- The user explicitly wants a
https://hermesadmin.bremen.com.tw/URL. - The machine already runs the Bremen
cloudflaredtunnel and the canonical domain is available. - The deliverable is a small static HTML bundle that can live behind a path prefix.
Preferred flow
- Stage a writable copy of the HTML files under a local deploy root, preserving source files on shared drives.
- Add a small landing
index.htmlwhen there are multiple pages. - Serve the staged directory from a dedicated local static port.
- Add a path-specific
cloudflaredingress rule onhermesadmin.bremen.com.twthat points only that prefix to the static port. - Reload the managed
cloudflaredservice and verify the public HTTPS URL, not just the local port. - If the share should expire, create a one-shot cleanup job that removes both:
- the staged site directory
- the corresponding ingress rule
Then reload
cloudflaredagain.
Why this beats temporary preview URLs
- Keeps the share on the canonical Bremen domain.
- Matches the user's expectation for production-like links.
- Avoids handing out
workers.dev,trycloudflare.com, or other temporary third-party hostnames when the formal domain is already available.
Verification checklist
- Public URL starts with
https://hermesadmin.bremen.com.tw/ - Homepage returns 200
- Each primary HTML page returns 200
<title>or equivalent page identity matches the intended artifact- Expiry/down-take mechanism is scheduled when requested
Pitfall
Do not default to Cloudflare temporary preview deployments or quick tunnels when the canonical hermesadmin.bremen.com.tw path-routing infrastructure is already present and the user asked for a formal share URL.