diff --git a/nginx/nginx.conf b/nginx/nginx.conf index ac82cdd..7073109 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -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; + } } -} \ No newline at end of file +}