Skip to content

Commit

Permalink
Try proxying to ttl.sh (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh authored Mar 18, 2024
1 parent aae863f commit d940bb3
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@ http {

server {
listen __PORT__;
server_name ttl.sh;

location /v2 {
client_max_body_size 10000m;

proxy_pass https://fluffy-silverfish-j3pmmxknqt2c4coswbx9ebno.herokudns.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;
}
server_name ttlsh-router-ad2906be5f15.herokuapp.com;

location / {
root /usr/share/nginx/html;
index index.htm;
}

location ~ v2/_catalog$ {
return 401;
}

location /v2/ {
client_max_body_size 10000m;

proxy_pass https://ttl.sh;
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_intercept_errors on;
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;
}
}
}
}

0 comments on commit d940bb3

Please sign in to comment.