question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IPFS UI + HTTPs API are always pointing to port 80

See original GitHub issue

Version information: 0.4.13

Type: Bug

Severity: Medium

Description:

When I am exposing the API behind a reverse proxy via HTTPS (nginx), the API call coming from the /webui interface are all failing as they are trying to get to port :80. In the logs of the browser it looks like this:

GET https://ipfs-api.myawesomewebsite:80/api...

What should I do to allow the UI to talk to the HTTPS correctly? If I am disabling HTTPS it works perfectly.

To reproduce you can spin up a container, set up nginx to point :443 to :5001. Even with a fake certificate you will see the problem by browsing to https://localhost/webui.

(clones https://github.com/ipfs/go-ipfs/issues/4488 as this probably is the right place to submit the issue)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
olizillacommented, Oct 30, 2018

👋 v2 of the Web UI is out, which is a significant re-write. It’ll be released with v0.4.18 of go-ipfs. You can also try out a recent build at https://webui.ipfs.io

In general, the Web UI expects accessed via 127.0.0.1, on the same port as the API. There is currently no access control or authentication for the http API, so it is not advised that you proxy access to it to the public internet. See https://github.com/ipfs-shipyard/ipfs-webui/issues/836

1reaction
danc86commented, Mar 16, 2018

I tried master (commit 3d8aa07) built as QmULQD1iBBkxWkzb7nsyxpLqivjdfp4D1w2ctC8wRz8jJD. It’s definitely different, but not fixed 😃

It seems to have the opposite problem now. I see Firefox blocking the AJAX requests like this:

Blocked loading mixed active content “http://ipfs.djc.id.au:443/api/v0/id?stream-channels=true”

Note port 443 but scheme http.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IPFS UI + HTTPs API are always pointing to port 80 · Issue #611
Description: When I am exposing the API behind a reverse proxy via HTTPS (nginx), the API call coming from the /webui interface are...
Read more >
IPFS with React: Loading IPFS Assets from Your Distributed ...
Perhaps the most important configuration is the proxy_pass value, pointing to localhost (127.0.0.1, port 8080), followed by the URI. The URI in ...
Read more >
KeySpace: End-to-End Encryption using Ethereum and IPFS
js library ( https ://github.com/airswap/AirSwap.js). Afterwards they will be able to validate identities in decentralized messaging systems, encrypt & decrypt ...
Read more >
Ipfs node won't connect to my react app running on local host
It seems the issue is that CORS is left to the default settings on your IPFS node: block all connections. To fix this,...
Read more >
ChangeLog-SLE-15-SP3-GM-SLE-15-SP4-Snapshot ... - SUSE
Update to version 2.36.0: + New API: - Added ATK_ROLE_MARK and ... 4.4.21 - bsc#1192626: - Registration takes place always at the same...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found