Replies: 5 comments 2 replies
-
Note: the HTML with the IP mentioned above is the output of |
Beta Was this translation helpful? Give feedback.
-
( I'm curious if this was related to verdaccio by default on this machine only binding to ipv6 (::1:4873) and not ipv4, as I ran into another issue with nginx failing to proxy after a while, where localhost was resolving to only 127.0.0.1. I reconfigured it with a |
Beta Was this translation helpful? Give feedback.
-
I'm running into the same issue!
I used to get urls like https://10.0.0.1/-/static/runtime.hash.js in the response to my browser when I accessed https://sub.domain.tld. But now it's apparently I'll see if I can find some setting to tweak to fix this |
Beta Was this translation helpful? Give feedback.
-
Another thing to be aware of here is that Verdaccio by default caches the html template for an hour. So if you use |
Beta Was this translation helpful? Give feedback.
-
same bugs,but i write a shell to restart verdaccio for every 30mins。 |
Beta Was this translation helpful? Give feedback.
-
Your Environment
Describe the bug
Initially the base href and urls in the main HTML is returned as http://localhost:4873, e.g:
..but after running for some time they suddenty turn into https://(ip address of machine)/
This causes nginx rewrites to fail, and only a blank page is displayed since https://(ip address) is not considered valid/secure.
I don't really see the point of having this full URL here anyway, does it not suffice to load all resources relative to the base URL ?
( Setting env
VERDACCIO_PUBLIC_URL
to https://(fulldomain)/ before running the daemon apparently(?) makes it work? )To Reproduce
Not sure what triggers it.. Happens after running for a while.
Expected behavior
Should not change from localhost to ip address in base href and other references in HTML.
Screenshots, server logs, package manager log
N/A
Configuration File (cat ~/.config/verdaccio/config.yaml)
mostly default config with
Environment information
Beta Was this translation helpful? Give feedback.
All reactions