24 lines
807 B
Plaintext
24 lines
807 B
Plaintext
# Include inside the existing ttstd.com HTTPS server block.
|
|
# URI prefix /ads/ is stripped before forwarding to the relay.
|
|
location = /ads {
|
|
return 308 /ads/;
|
|
}
|
|
location ^~ /ads/ {
|
|
proxy_pass http://127.0.0.1:18081/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_buffering off;
|
|
proxy_request_buffering off;
|
|
proxy_read_timeout 3600s;
|
|
proxy_send_timeout 3600s;
|
|
# Do not cache authenticated requests or log tickets in query strings.
|
|
proxy_cache off;
|
|
proxy_hide_header Cache-Control;
|
|
add_header Cache-Control "no-store" always;
|
|
access_log off;
|
|
}
|