mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-27 06:54:00 +00:00
Add HTTPS service for btc rpc corsproxy
This commit is contained in:
parent
989c50780b
commit
9919dc061f
|
@ -7,9 +7,15 @@ upstream bitcoind {
|
|||
|
||||
## mainnet configuration
|
||||
server {
|
||||
listen 8336;
|
||||
listen 8336 ssl;
|
||||
server_name bitcoind.localhost;
|
||||
|
||||
include /etc/nginx/mynode/mynode_ssl_params.conf;
|
||||
include /etc/nginx/mynode/mynode_ssl_cert_key.conf;
|
||||
|
||||
access_log /var/log/nginx/access_nginx_corsproxy_https.log;
|
||||
error_log /var/log/nginx/error_nginx_corsproxy_https.log;
|
||||
|
||||
location / {
|
||||
if ($request_method = 'OPTIONS') {
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
|
@ -32,6 +38,8 @@ server {
|
|||
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
||||
}
|
||||
|
||||
include /etc/nginx/mynode/mynode_ssl_proxy_params.conf;
|
||||
|
||||
proxy_pass http://bitcoind;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Accept-Encoding "";
|
||||
|
|
|
@ -47,7 +47,10 @@
|
|||
|
||||
<ol class="instructions-steps">
|
||||
<li>Change the Public/Private option to Private</li>
|
||||
<li>Change the URL to your node's IP address: http://{{local_ip}}:8336</li>
|
||||
<li>Change the URL to your node's IP address: <a href="https://{{local_ip}}:8336" target="_blank">https://{{local_ip}}:8336</a></li>
|
||||
<ul>
|
||||
<li>You may need to visit the URL in your browser and accept the HTTPS certificate</li>
|
||||
</ul>
|
||||
<li>Change the Username to "mynode"</li>
|
||||
<li>Change the Password to the RPC Password from the <a href="/bitcoin">Bitcoin page</a></li>
|
||||
<li>Click "Test Connection"</li>
|
||||
|
|
Loading…
Reference in New Issue
Block a user