Savior Faire

Owntone websocket on Nginx Proxy Manager

I have been using Owntone to be my homelab music center, and I want to use it behind reverse proxy. The tutorial did not fix my problem on how to fix the websocket connection issue with port 3688.

Eventually, I found out a method in fixing that on Nginx Proxy Manager:

The additional step is to add the following scripts to the Advanced Tab of a Proxy Host:


Code

listen 3688 ssl http2;

location / {
    # Websocket
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_http_version 1.1;
    # Resolve Issues
    proxy_buffer_size 64k;
    proxy_buffers 4 128k;
    proxy_busy_buffers_size 128k;
    # Proxy!

    if ($server_port = 3688) {
        proxy_pass       http://daapd:3688;
    }
    include conf.d/include/proxy.conf;
}

Revise the port, domain name (in my case ‘daapd’). To fix the issue.

#Tutorials