Skip to content

Can it be possible to make prefix for nginx-proxy-manager? #4376

Closed Answered by efirlus
efirlus asked this question in Q&A
Discussion options

You must be logged in to vote

I got the answer from reddit.

proxy_set_header Accept-Encoding "";
sub_filter_once off;
sub_filter_types text/html application/javascript text/css;
sub_filter '/css' '/npm/css';
sub_filter '/js/' '/npm/js/';
sub_filter '"js/"' '"npm/js/"';
sub_filter '/images' '/npm/images';
sub_filter '/assets' '/npm/assets';
sub_filter '/api' '/npm/api';
sub_filter '/login' '/npm/login';

basic strategy is, just subfiltering every subpath.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by efirlus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant