diff --git a/.agent/skills/nginx/SKILL.md b/.agent/skills/nginx/SKILL.md index b8c2448..4841d34 100644 --- a/.agent/skills/nginx/SKILL.md +++ b/.agent/skills/nginx/SKILL.md @@ -113,6 +113,11 @@ server { ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; + add_header X-Content-Type-Options "nosniff" always; + add_header X-Frame-Options "SAMEORIGIN" always; + add_header X-XSS-Protection "1; mode=block" always; + add_header Referrer-Policy "strict-origin-when-cross-origin" always; + location /docs/ { try_files $uri $uri/ /docs/index.html =404; } @@ -130,6 +135,13 @@ Use this site to explain: - local built-in knowledge in the `db` jail - upstream-aware relationship to NanoClaw +Recommended baseline for all public vhosts: + +- `add_header X-Content-Type-Options "nosniff" always;` +- `add_header X-Frame-Options "SAMEORIGIN" always;` +- `add_header X-XSS-Protection "1; mode=block" always;` +- `add_header Referrer-Policy "strict-origin-when-cross-origin" always;` + ## Site structure: clawdie.local ``` diff --git a/.agent/skills/nginx/references/vhost-template.md b/.agent/skills/nginx/references/vhost-template.md index f62b935..9327534 100644 --- a/.agent/skills/nginx/references/vhost-template.md +++ b/.agent/skills/nginx/references/vhost-template.md @@ -40,6 +40,11 @@ server { ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; + add_header X-Content-Type-Options "nosniff" always; + add_header X-Frame-Options "SAMEORIGIN" always; + add_header X-XSS-Protection "1; mode=block" always; + add_header Referrer-Policy "strict-origin-when-cross-origin" always; + location / { try_files $uri $uri/ =404; } @@ -79,6 +84,11 @@ server { ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; + add_header X-Content-Type-Options "nosniff" always; + add_header X-Frame-Options "SAMEORIGIN" always; + add_header X-XSS-Protection "1; mode=block" always; + add_header Referrer-Policy "strict-origin-when-cross-origin" always; + location /docs/ { try_files $uri $uri/ /docs/index.html =404; } diff --git a/README.md b/README.md index e18d2b1..d393a68 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,14 @@
38.4k tokens · 19% of context window + • + built-in knowledge · preloaded
--- diff --git a/html/clawdie/docs/split-brain.html b/html/clawdie/docs/split-brain.html index 7d0a038..77b5a2d 100644 --- a/html/clawdie/docs/split-brain.html +++ b/html/clawdie/docs/split-brain.html @@ -84,6 +84,11 @@ -> import Brain A into db jail -> local built-in knowledge is ready -> add production LLM keys later + +
+ The bootstrap step that imports Brain A lives in
+ setup/skills-memory.ts.
+
+ Apply a small baseline to every public vhost: X-Content-Type-Options,
+ X-Frame-Options, X-XSS-Protection, and
+ Referrer-Policy. It is low-effort hardening worth standardising.
+