# Фрагмент для server { ... } с HTTPS. Подключи include или вставь вручную.
# Upstream: rd-audio-ws-server.py слушает 127.0.0.1:8765

location /rd-audio {
    proxy_pass http://127.0.0.1:8765;
    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-Real-IP $remote_addr;
    proxy_read_timeout 86400s;
    proxy_send_timeout 86400s;
}
