mirror of
https://github.com/replicatedhq/ttl.sh.git
synced 2026-05-20 15:22:48 +00:00
33 lines
867 B
Nginx Configuration File
33 lines
867 B
Nginx Configuration File
events {}
|
|
http {
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
server {
|
|
listen __PORT__;
|
|
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;
|
|
}
|
|
}
|
|
}
|