From f132c69b180d37821aa5cb3ada8002517420224d Mon Sep 17 00:00:00 2001 From: Midou36O Date: Thu, 31 Aug 2023 13:08:01 +0100 Subject: [PATCH] Enable logging on nitter --- privfrontends/templates/Caddyfile.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/privfrontends/templates/Caddyfile.j2 b/privfrontends/templates/Caddyfile.j2 index bff2d27..9481881 100644 --- a/privfrontends/templates/Caddyfile.j2 +++ b/privfrontends/templates/Caddyfile.j2 @@ -77,6 +77,11 @@ lbry.{{ server_prefix }}.projectsegfau.lt lbry.projectsegfau.lt { } nitter.{{ server_prefix }}.projectsegfau.lt nitter.projectsegfau.lt n.psf.lt n.{{ server_prefix }}.psf.lt { import def + log { + # This is temporarily required to monitor nitter traffic due to scrapers being more active, so we need to monitor and rate limit them at a later date. + output file /var/log/caddy/nitter.log + format json + } header { X-Permitted-Cross-Domain-Policies none Permissions-Policy "Permissions-Policy: accelerometer=(), ambient-light-sensor=(), autoplay=(self), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(self), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(self), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()"