LibreQoE / LibreQoS

A Quality of Experience and Smart Queue Management system for ISPs. Leverage CAKE to improve network responsiveness, enforce bandwidth plans, and reduce bufferbloat.
https://libreqos.io/
GNU General Public License v2.0
413 stars 46 forks source link

Dashboard does not show behind Caddy reverse proxy #542

Open owaismai opened 1 month ago

owaismai commented 1 month ago

Ver: lqos Beta 2 Caddy v 2.8.4

Issue: All set up and i can reach the dashboard using caddy. But the dashboard does not show. Tree shows but does not auto update Tree overview works and auto updates

my caddyfile:


example.com {
        # Set this path to your site's directory
        root * /usr/share/caddy

        # Enable the static file server
        file_server

        # Reverse proxy for LibreQoS
        reverse_proxy /lqos/* http://<IP_ADDRESS>:9123

        # Reverse proxy for InfluxDB
        reverse_proxy /influxdb/* http://<IP_ADDRESS>:8086

        # Enable TLS with on-demand certificates
        tls {
                on_demand
        }
}

lqos.example.com {
        reverse_proxy <IP_ADDRESS>:9123

        # Enable TLS with on-demand certificates
        tls {
                on_demand
        }
}

id.example.com {
        reverse_proxy http://<IP_ADDRESS>:8086
}
thebracket commented 1 month ago

I'm out of town for the week - are you trying to add https, or just proxy in general? For just reverse proxy, you'll need to support a couple of Websocket URLs with upgrade (I'll have to get to a computer larger than my phone to get them). If you're seeking https, we'd also need to add a couple of lines to the JavaScript (to detect the URL, and use wss:// as opposed to ws:/ ).

(Not very familiar with Caddy, I tend to go with nginx)

On Sun, Aug 4, 2024, 6:11 PM owaismai @.***> wrote:

Ver: lqos Beta 2 Caddy v 2.8.4

Issue: All set up and i can reach the dashboard using caddy. But the dashboard does not show. Tree shows but does not auto update Tree overview works and auto updates

my caddyfile:

example.com {

Set this path to your site's directory

    root * /usr/share/caddy

    # Enable the static file server
    file_server

    # Reverse proxy for LibreQoS
    reverse_proxy /lqos/* http://<IP_ADDRESS>:9123

    # Reverse proxy for InfluxDB
    reverse_proxy /influxdb/* http://<IP_ADDRESS>:8086

    # Enable TLS with on-demand certificates
    tls {
            on_demand
    }

} lqos.example.com { reverse_proxy :9123

    # Enable TLS with on-demand certificates
    tls {
            on_demand
    }

} id.example.com { reverse_proxy http://:8086 }

— Reply to this email directly, view it on GitHub https://github.com/LibreQoE/LibreQoS/issues/542, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRU4336RAFV4YFMHLXB4WDZP2YJJAVCNFSM6AAAAABL7HDV6WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2DOMZTGU2TANY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

thebracket commented 1 month ago

I think commit 26c3269 should take care of this (and lists the URLs). I'll get it into a draft PR - I can't test it until I'm back home.

thebracket commented 1 month ago

Ok, PR #543 should stop us from forgetting this - I think it works, but haven't been able to test yet.