Try proxying to ttl.sh (#146)

This commit is contained in:
Salah Al Saleh
2024-03-18 11:10:14 -07:00
committed by GitHub
parent aae863ff09
commit d940bb3f09

View File

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