Files
ukmesh/scripts/full-dev/lan/tool-headers.conf
gadgethd 1493b68846 Integrate the UKMesh DEV live map, Beacon feed and Health Check
Keep the tools inside the UKMesh website and open CoreScope in Live mode. Resolve packet paths when a reader selects a packet.

Add reversible DEV UI releases and an opt-in, isolated MQTT archive replay. A new checkout uses its configured MQTT intake.
2026-11-27 12:50:38 +00:00

36 lines
1.2 KiB
Plaintext

# Keep the upstream CSP and add only the directives the DEV frames need.
map $upstream_http_content_security_policy $embedded_site_policy {
default "";
"~^(.+)$" "$1; frame-src @CORE@ @HEALTH@ @BEACON@";
}
map $upstream_http_content_security_policy $embedded_health_policy {
default $upstream_http_content_security_policy;
"~^(?<health_csp_start>.*;\s*)frame-ancestors 'none'(?<health_csp_end>;.*|$)$"
"$health_csp_start frame-ancestors @SITE@$health_csp_end";
}
map $upstream_http_content_security_policy $embedded_health_frame_options {
default DENY;
"~;\s*frame-ancestors 'none'(;|$)" "";
}
# Browsers share cookies across ports on a host. Forward only the Health Check
# cookies to Health Check. Keep website owner cookies out of CoreScope and Beacon.
map "$cookie_mesh_health_turnstile:$cookie_mesh_health_turnstile_ws" $health_cookies {
":" "";
default "mesh_health_turnstile=$cookie_mesh_health_turnstile; mesh_health_turnstile_ws=$cookie_mesh_health_turnstile_ws";
}
map $server_port $lan_proxy_cookie {
default $http_cookie;
@CORE_PORT@ $core_cookies;
@HEALTH_PORT@ $health_cookies;
@BEACON_PORT@ "";
}
map $cookie_cs_session $core_cookies {
"" "";
default "cs_session=$cookie_cs_session";
}