From 83e38938c43d0baf32a08457fbf537aef077f73f Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Mon, 28 Jul 2025 12:09:26 +0530 Subject: [PATCH] make /pic/ work for libreddit --- privfrontends/templates/Caddyfile.j2 | 3 +++ privfrontends/vars.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/privfrontends/templates/Caddyfile.j2 b/privfrontends/templates/Caddyfile.j2 index 698fa64..279ef0b 100644 --- a/privfrontends/templates/Caddyfile.j2 +++ b/privfrontends/templates/Caddyfile.j2 @@ -136,6 +136,9 @@ n.eu.psf.lt n.us.psf.lt n.in.psf.lt { {% endif %} libreddit.{{ server_prefix }}.projectsegfau.lt libreddit.projectsegfau.lt lr.psf.lt lr.{{ server_prefix }}.psf.lt { reverse_proxy :6464 + route { + reverse_proxy /pic/* :6465 + } 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. diff --git a/privfrontends/vars.yaml b/privfrontends/vars.yaml index 9a723af..d9a87d5 100644 --- a/privfrontends/vars.yaml +++ b/privfrontends/vars.yaml @@ -114,7 +114,7 @@ apps: - name: redlib image: quay.io/redlib/redlib:latest ports: - - "8080" + - "6465:8080" environment: FRONT_PAGE: popular COMMENT_SORT: new