From 7984a3efc5da7ad4d5c8569beb38e7d7876a84eb Mon Sep 17 00:00:00 2001 From: Salah Al Saleh Date: Fri, 15 Mar 2024 12:11:50 -0700 Subject: [PATCH] handle v2/ in nginx config (#144) --- nginx/nginx.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 5d2b834..39d9cac 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -7,6 +7,17 @@ http { listen __PORT__; server_name ttl.sh; + location /v2/ { + client_max_body_size 10000m; + + proxy_pass https://ttlsh.herokuapp.com; + 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_request_buffering off; + } + location /v2 { client_max_body_size 10000m;