Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subfolder nginx reverse proxy config #475

Open
riptide981 opened this issue Jan 23, 2025 · 1 comment
Open

subfolder nginx reverse proxy config #475

riptide981 opened this issue Jan 23, 2025 · 1 comment

Comments

@riptide981
Copy link

riptide981 commented Jan 23, 2025

Here is AFAIK a functional subfolder nginx reverse proxy config

location ^~ /gaseous {
    set $app 'gaseous';

    rewrite ^/gaseous/?(.*)$ /$1 break;
    proxy_pass http://localhost:5198; # NO TRAILING SLASH

    # Redirect location headers
    proxy_redirect ^ /$app;

    # Sub filters to replace hardcoded paths
    proxy_set_header Accept-Encoding "";
    sub_filter_once off;
    sub_filter_types *;
    sub_filter 'href="/"' 'href="/$app"';
    sub_filter 'href:"/"' 'href:"/$app"';
    sub_filter '/api' '/$app/api';
    sub_filter '/styles' '/$app/styles';
    sub_filter '/scripts' '/$app/scripts';
    sub_filter '/images/' '/$app/images/';
    sub_filter '/pages/' '/$app/pages/';
    sub_filter '/site.webmanifest' '/$app/site.webmanifest';
    sub_filter '/apple-' '/$app/apple-';
    sub_filter '/favicon' '/$app/favicon';
    sub_filter '/index' '/$app/index';
}

modified from this one https://docs.jellyseerr.dev/extending-jellyseerr/reverse-proxy

@yohanp4j
Copy link

It work like charm, but is there a way to get the fonts too ? The comodore font included with the docker doesn't seem to get trought the reverse proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants