Files
AndroidDeviceStreaming/deploy/nginx-ads-relay-path.conf

24 lines
839 B
Plaintext

# Include inside the existing ttstd.com HTTPS server block.
# URI prefix /ads-relay-1/ is stripped before forwarding to the relay.
location = /ads-relay-1 {
return 308 /ads-relay-1/;
}
location ^~ /ads-relay-1/ {
proxy_pass http://127.0.0.1:18082/;
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;
}