lotus-land-story: default Remote-User on tailnet sites
Docket requires Remote-User alongside X-User-Slug and rejects requests
missing either; setting it in tsident also overwrites forged client
values on sites that do not set their own.

Assisted-by: GLM-5.3 via pi
change tvzktquptqspykkltyvzzxxyrlvkkosp
commit 8b876052328a8ab82458a7d995c09fd871b88586
author Alpha Chen <alpha@kejadlen.dev>
date
parent zqoxrnon
diff --git a/lotus-land-story/templates/Caddyfile b/lotus-land-story/templates/Caddyfile
index bbaaf7c..4c16f78 100644
--- a/lotus-land-story/templates/Caddyfile
+++ b/lotus-land-story/templates/Caddyfile
@@ -34,7 +34,8 @@
 	log
 }
 
-# Gates on tailscale identity; X-User-Slug overwrites any client-sent value.
+# Gates on tailscale identity; headers overwrite client-sent values. Apps
+# can override Remote-User with header_up where they match another value.
 (tsident) {
 	tailscale_auth
 	map {http.auth.user.tailscale_user} {ts_slug} {
@@ -43,6 +44,7 @@
 {% endfor %}
 		default {http.auth.user.tailscale_login}
 	}
+	request_header Remote-User {http.auth.user.tailscale_user}
 	request_header X-User-Slug {ts_slug}
 }