Describe the bug
When connecting to verdaccio through a reverse proxy with a prefix, links break.
To Reproduce
Steps to reproduce the behavior:
location ~ ^/node/(.*)$ {
resolver 127.0.0.11;
proxy_pass http://verdaccio:4873/$1;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
}
Expected behavior
The landing page should load, just like it does when using verdaccio 2.x.
Docker || Kubernetes (please complete the following information):
Configuration File (cat ~/.config/verdaccio/config.yaml)
url_prefix: /node/
Additional context
This same scenario works perfectly when using verdaccio 2.x.
I ran into this problem while updating our verdaccio server that is running behind a reverse proxy.
Not sure if the webpack config is the correct location to fix the problem but it worked for me.
see pull request https://github.com/verdaccio/verdaccio/pull/755 for details.
kind regards,
It will be released asap.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.