QuackUIInstall

Behind a reverse proxy

Put QuackUI on a public address with TLS.

QuackUI’s web container serves plain HTTP on one port. Put a TLS proxy in front.

  1. Bind QuackUI to loopback so only the proxy can reach it.

    QUACKUI_PORT=127.0.0.1:8080
    QUACKUI_PUBLIC_URL=https://bi.example.com
    QUACKUI_TRUSTED_PROXIES=172.18.0.1
  2. Proxy to it. With Caddy:

    bi.example.com {
      reverse_proxy 127.0.0.1:8080
    }

    With nginx:

    location / {
      proxy_pass http://127.0.0.1:8080;
      proxy_set_header Host $host;
      proxy_set_header X-Forwarded-For $remote_addr;
      client_max_body_size 2g;
      proxy_read_timeout 300s;
    }
  3. Restart both and sign in.

Public URL

Requests that change something must come from this exact origin. A wrong value shows up as 403 when you try to sign in. It also makes cookies Secure, and delivery links and the SSO redirect use it.

Trusted proxies

Sign-in attempts are limited per address. Unless QuackUI trusts your proxy, everyone appears to come from it and shares one limit.

List its address as the web container sees it. For a proxy on the Docker host that is usually the compose network’s gateway:

docker network inspect quackui_default -f '{{(index .IPAM.Config 0).Gateway}}'

Separate several proxies or CIDR ranges with commas. When a trusted proxy connects, QuackUI reads X-Forwarded-For from right to left, skips trusted proxies and takes the first other address. The web container won’t start with an entry that isn’t an IP address or range.

The proxy must set or append to X-Forwarded-For itself and not pass on what the client sent. A client connecting from a trusted address can claim any IP, so list only proxies you control.

Headers

QuackUI sends a Content Security Policy, X-Content-Type-Options: nosniff and Referrer-Policy: same-origin. It can’t be shown in a frame, by your own site or any other, and there is no setting for that.