Files
ttl.sh/nginx/nginx.conf
2024-03-18 11:27:03 -07:00

33 lines
840 B
Nginx Configuration File

events {}
http {
include mime.types;
default_type application/octet-stream;
server {
listen __PORT__;
server_name router.ttl.sh;
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;
}
}
}