From 6a5486bdae71bdca4705c4a872a1f4c2e04430dc Mon Sep 17 00:00:00 2001 From: evan Date: Thu, 20 Aug 2026 20:31:36 -0700 Subject: [PATCH] sce.sjsu.edu/p ???? --- nginx.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nginx.conf b/nginx.conf index 86d3c2b6d..7cd2bbd12 100644 --- a/nginx.conf +++ b/nginx.conf @@ -68,6 +68,15 @@ http { proxy_pass http://cleezy-app/qr/$alias; } + location ~ ^/p/(?.*)$ { + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + + proxy_pass http://cleezy-app/paste/$alias; + } + location ~ /recipe/(.*)$ { proxy_set_header X-Original-URL "$scheme://$host$request_uri"; proxy_set_header X-Base-URL "$scheme://$host";