nzbgetcom / nzbget

Efficient usenet downloader
https://nzbget.com
GNU General Public License v2.0
310 stars 16 forks source link

New icons not working via reverse proxy #245

Closed rg9400 closed 5 months ago

rg9400 commented 5 months ago

Is there already an issue for your problem?

NZBGet Version

v23-stable

Platform

All

Environment

Version: 24.1-testing-20240425
Docker: Yes
OS: Ubuntu 22.04
Reverse Proxy: NGINX

Current Behavior

With the below NGINX configuration, NZBGet is loading fonts at https://domain.com/lib/material-icons.woff2. This location does not exist because NZBGet is running at https://domain.com/nzbget, and so the icons fail to render. Even though there is no explicit setting to add a subfolder on NZBGet, everything else runs perfectly except for these new icons. It works fine outside of the reverse proxy.

location ^~ /nzbget {
    include /config/nginx/proxy.conf;
    include /config/nginx/resolver.conf;
    set $upstream_app nzbget;
    set $upstream_port 6789;
    set $upstream_proto http;
    proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}

Expected Behavior

The icons should be available on https://domain.com/nzbget/lib/material-icons.woff2 as well, so that they can render like the old icons used to.

Steps To Reproduce

  1. Use the above NGINX config with SWAG or set up any reverse proxy for NZBGet, then access it via the RP to verify if the new icons are rendering or not.

Logs

N/A

Extra information

N/A

dnzbk commented 5 months ago

This commit should have fixed this issue. Please upgrade to the latest test version to make sure, thanks.

rg9400 commented 5 months ago

This is fixed now