-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Routing not using proxy path [windows/iis] #1297
Comments
:-) ... I was working on it last night https://github.com/verdaccio/docker-examples/tree/master/reverse_proxy/nginx/relative_path Thanks for reporting this @Steven-Harris |
@Steven-Harris one question, my fix will remove the |
That shouldn't be a problem - I think that's even easier for new users |
@Steven-Harris please try with the tag |
Gave this a shot and I am getting mixed content/CORS errors. This is due to the fact I am running verdaccio http and the proxy is https. Is there anything I can do to resolve this? beta.5 didn't have this issue. |
@Steven-Harris could you show me what exaclty is being affected by CORS? |
Do the assets and the page have the same port? I can read different protocol in both ... |
I just have
I am not serving my assets separate from verdaccio api |
I meant in your reverse proxy configuration. |
oh it's just a simple iis proxy
|
Well, I tried with rewrite on my test with nginx and did not work at all. I'm not an expert with this so I make it simpler, this works for me pretty well. I think if you want to follow such approach
|
Are you suggesting to have verdaccio run https? I happy to play around with it however I am not using docker in this setup just running through npm. beta.5 works perfectly fine with my current setup I am not seeing in the fix branch anything that would cause this |
fix: routing is aware of reverse proxy directory #1297
For some reason, I thought you were using Docker.
It would be great if you run some test on your side. The I run a lot of different test in this repo with Docker (https://github.com/verdaccio/docker-examples/tree/master/reverse_proxy/nginx). Unfortunately, I'm not sure whether the windows setup is still correct (https://verdaccio.org/docs/en/next/iss-server) since I don't use IIS and I have no way to test it. |
@juanpicado I don't think this working as expected. Before the href where being transformed correctly so that they were https://domain.com/registry. but now they are http://localhost:4873/registry. This cause mixed content errors but more over http://localhost:4873/registry doesn't exist. I believe the href should be transformed with the full url the application just needs to be configured so that it is relative to /registry |
I'll take of this #2122 please follow up there. |
I updated from an alpha version (v4.0.0.0-alpha.2) to the latest beta and my path no longer works. I have https://domain.com/npmregistry. When I navigate to that url it shows the "Sorry, we couldn't find it" page because it's looking for a package named "npmregistry" I can click go home and the application works just fine but the url goes to https://domain.com/. Which is fine until I refresh the page or send someone a direct link. The relative lines of my config are
I have the registry host on a computer and proxied from a web server. The npm registry is expose through http://:4873 and then I have an IIS proxy on a web server to allow for access via https://domain.com/npmregistry/
The text was updated successfully, but these errors were encountered: