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";