mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
New web-svc-mirror role: an nginx vhost that proxies and caches exactly the external asset hosts aggregated from all deployed applications' CSP whitelists (external_asset_origins filter) under first-party paths (/<origin-host>/...), refusing every other upstream. svc-net-tor consumes the service, so any tor deployment automatically serves the mirror on its onion. For apps with services.tor.enabled the shared body filter rewrites external asset URLs in HTML to the onion mirror (onion sessions only; clearnet untouched) and the CSP builder allows the mirror origin in the asset directives. The dashboard's keycloak-js vendoring is reverted: onion sessions now load the adapter through the mirror, clearnet loads jsdelivr directly as before. Verified: variant=0 deploy green (failed=0), dashboard 14/14 over onion with keycloak-js served through the mirror, mirror spec green, health check accepts the 404 vhost root. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
4 lines
151 B
Bash
4 lines
151 B
Bash
CANONICAL_DOMAIN={{ lookup('domain', application_id) | dotenv_quote }}
|
|
|
|
MIRROR_BASE_URL={{ lookup('tls', application_id, 'url.base') | dotenv_quote }}
|