From 9a8e72fdd985785dd157947105980ae367fcefa0 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Wed, 6 Dec 2023 19:15:34 +0530 Subject: [PATCH] X-Real-IP for nitter --- privfrontends/templates/Caddyfile.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/privfrontends/templates/Caddyfile.j2 b/privfrontends/templates/Caddyfile.j2 index 47917cc..59e6dfa 100644 --- a/privfrontends/templates/Caddyfile.j2 +++ b/privfrontends/templates/Caddyfile.j2 @@ -85,7 +85,9 @@ nitter.{{ server_prefix }}.projectsegfau.lt nitter.projectsegfau.lt n.psf.lt n.{ header { header Content-Security-Policy "default-src 'none'; script-src 'self' 'unsafe-inline'; script-src-attr 'none'; img-src 'self'; style-src 'self' 'unsafe-inline'; style-src-elem 'self'; font-src 'self'; object-src 'none'; media-src 'self' blob:; worker-src 'self' blob:; base-uri 'self'; form-action 'self'; frame-ancestors 'self'; connect-src 'self' https://*.twimg.com; manifest-src 'self'" } - reverse_proxy :8065 + reverse_proxy :8065 { + header_up X-Real-IP {remote_host} + } import torloc nitter import i2ploc pjsfs4ukb6prmfx3qx3a5ef2cpcupkvcrxdh72kqn2rxc2cw4nka.b32.i2p }