handle v2/ in nginx config (#144)

This commit is contained in:
Salah Al Saleh
2024-03-15 12:11:50 -07:00
committed by GitHub
parent 1708b924c7
commit 7984a3efc5

View File

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