-
Notifications
You must be signed in to change notification settings - Fork 501
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
webui on nas LAN #1038
Comments
This is likely a problem with the CORS configuration of your ipfs node. If you are accessing the webui via a local IP address on your LAN, then you need to add that origin to the allowed domains config. $ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["<ip address and port of remote api>"]' To see that that is doing, you can open up the config file for your node in the {
"API": {
"HTTPHeaders": {
"Access-Control-Allow-Origin": [] |
is the default config i dint change anything
does nothing edit: i blame this on the companion 😠 the companion "open web ui" open a tab like this http://local_ip:8080/ipfs/QmfQkD8pBSBCBxWEwFSu4XaDVSWK6bjnNuaWZjMyQbyDub/#/welcome but it should open |
No need to blame companion just yet! It sounds like it is doing the right thing.
Companion is opening the stable release of Web UI, via an immutable ipfs address. It should open fine. The challenge is that you'd like it to talk to an API on a different machine on your LAN. Right now it's not easy to do that as you have to update the CORS config on your ipfs node to allow access via the LAN IP address for your nas. |
@icf20 thank you for raising the issue of poor UX when opening Web UI from LAN IP. We plan to simplify the way Companion opens Web UI: ipfs/ipfs-companion#736 Not sure how useful it is, but some additional context:
Default config assumes you are running and accessing Web UI via This is not related to Web UI issues. It means that if you have HTTPS website with images loaded from IPFS paths, IPFS Companion will redirect requests for those images to your node at LAN IP. If node in LAN does not have HTTPS, browsers will produce mixed content errors. It is a limitation of the web platform (Secure contexts). |
i installed ipfs on a nas for LAN using docker
when i try to access webui i get this
ipfs companion works tho
exactly what i need to do and get this working
The text was updated successfully, but these errors were encountered: