local-ssl-proxy | Simple SSL HTTP proxy using a self-signed certificate | TLS library
kandi X-RAY | local-ssl-proxy Summary
kandi X-RAY | local-ssl-proxy Summary
[License] Simple SSL HTTP proxy using a self-signed certificate. Intended for local development only.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of local-ssl-proxy
local-ssl-proxy Key Features
local-ssl-proxy Examples and Code Snippets
Community Discussions
Trending Discussions on local-ssl-proxy
QUESTION
I'm building a distributed web app designed to be hosted on IPFS. I want to do development in a web browser, using my local gateway to serve my files, but I use Javascript APIs that are not permitted without being served off HTTPS.
I tried starting a reverse proxy with self-signed ssl pointing at my local IPFS http gateway, but when I visit links using the reverse proxy, say https://___hashhere___.ipfs.localhost:8081/
, I'm redirected to http://___hashhere___.ipfs.localhost:8080/
:
ANSWER
Answered 2020-Sep-04 at 16:56If you use Chromium-based browser, then
http://___hashhere___.ipfs.localhost:8080/
will havewindow.isSecureContext
set totrue
and you will have access to all Web APIs. No need for TLS setup for dev on localhost with Chromium (Firefox has a bug).If you are running IPFS Companion, you may want to disable it when you develop your app, to ensure requests for IPFS resources are not redirected to the gateway set in browser extension's Preferences.
In production, you deploy go-ipfs behind a reverse proxy and that proxy terminates TLS. You can control the protocol scheme and host used in some of redirects via
X-Forwarded-Proto
andX-Forwarded-Host
headers, as noted in go-ipfs/docs/config.md
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install local-ssl-proxy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page