-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Help needed] How can my web page use https? #134
Comments
I think this should help: Host/Port to bind toBTCEXP_HOST=0.0.0.0 Bitcoin RPC Credentials (URI -OR- HOST/PORT/USER/PASS)#BTCEXP_BITCOIND_URI=bitcoin://rpcusername:[email protected]:8332?timeout=10000 Whether public-demo aspects of the site are activeBTCEXP_DEMO=true Privacy mode disables:Exchange-rate queries, IP-geolocation queriesBTCEXP_PRIVACY_MODE=false Don't request currency exchange ratesBTCEXP_NO_RATES=false |
All of this is helpful but not in my case. I already have it set up. I just want to use rpcs without auth and to utilize https |
@Relaxo143 The demo site is actually reverse-proxied to serve via HTTPS. I recommend you do the same if you'd like your site to be served securely. I recommend either apache or nginx as your reverse proxy and for both there should be many tutorials for setting this tool up for HTTPS. If you have your own domain, many modern tutorials will also step you through how to get your certificate automatically via Lets' Encrypt. I hope this helps. Feel free to let me know if you hit any specific snags. |
Happy to re-open if further discussion is needed. |
FWIW;
Leave the default config, scroll to the bottom, paste in at bottom and edit:
Done :) |
Sorry to revive an old thread but I'm trying to get a reverse proxy set up and can't seem to get the nginx set up correct. I took the above but changed explorer-servers to srv1.MYDOMAIN.io:3000 etc added to nginx default config
when I try to restart nginx after enabling, it fails and systemctl status nginx.service shows
If I comment all that out nginx starts without issue and I can see the nginx start page on MYDOMAIN.io Also not sure if this has any relevance but I am trying to run this on a headless pi. npm start of btc-rpc-explorer seems to work fine and shows the proper block height in logs etc Any help appreciated. |
Ok I got it sorted by simplifying the above. I'm adding what I ended up with in my default config here incase anyone else lands here and has issues.
that passed Thanks for the initial how to @leshacat |
@lucidprojects Glad you figured this out and thanks for posting your solution for future searchers! |
I see that the demo site has a secure connection, but mine doesn't. How could I make this work? Also, when trying to open the rpc explorer I get a message that the function is disabled and I can enable it in the config.js file. However, I don't see anything there which I could change to modify this. I want no login prompts, but the safe RPCs to be accessible, Just like on the demo site. Helps would be appreciated.
The text was updated successfully, but these errors were encountered: