Skip to content

Commit

Permalink
handle v2/ in nginx config (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh authored Mar 15, 2024
1 parent 1708b92 commit 7984a3e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7984a3e

Please sign in to comment.