Add HTTPS for Mempool and BTC Pay Server

This commit is contained in:
Taylor Helsper 2020-08-17 20:27:07 -05:00
parent b80f118b2a
commit 7ff983b815
4 changed files with 61 additions and 5 deletions

View File

@ -0,0 +1,17 @@
server {
listen 49393 ssl;
server_name btcpayserver;
include /etc/nginx/mynode/mynode_ssl_params.conf;
include /etc/nginx/mynode/mynode_ssl_cert_key.conf;
access_log /var/log/nginx/access_btcpayserver.log;
error_log /var/log/nginx/error_btcpayserver.log;
location / {
proxy_pass http://127.0.0.1:49392;
include /etc/nginx/mynode/mynode_ssl_proxy_params.conf;
}
}

View File

@ -0,0 +1,17 @@
server {
listen 4081 ssl;
server_name mempool;
include /etc/nginx/mynode/mynode_ssl_params.conf;
include /etc/nginx/mynode/mynode_ssl_cert_key.conf;
access_log /var/log/nginx/access_mempool.log;
error_log /var/log/nginx/error_mempool.log;
location / {
proxy_pass http://127.0.0.1:4080;
include /etc/nginx/mynode/mynode_ssl_proxy_params.conf;
}
}

View File

@ -40,6 +40,7 @@ ufw allow 3020 comment 'allow Caravan'
ufw allow 3030 comment 'allow Thunderhub'
ufw allow 3031 comment 'allow Thunderhub HTTPS'
ufw allow 4080 comment 'allow Mempool'
ufw allow 4081 comment 'allow Mempool HTTPS'
ufw allow 5000 comment 'allow LNBits'
ufw allow 5001 comment 'allow LNBits HTTPS'
ufw allow 5353 comment 'allow Avahi'
@ -52,6 +53,7 @@ ufw allow 6771 comment 'allow myNode QuickSync (LPD)'
ufw allow 19999 comment 'allow Netdata'
ufw allow 25441 comment 'allow Specter Desktop'
ufw allow 49392 comment 'allow BTCPay Server-direct'
ufw allow 49393 comment 'allow BTCPay Server-direct HTTPS'
ufw allow 51194 comment 'allow VPN'
ufw allow 61208 comment 'allow Glances'
ufw allow from 127.0.0.1 comment 'allow from localhost'

View File

@ -23,17 +23,29 @@
})
$("#rtl").on("click", function() {
url = 'https://'+location.hostname+':3011'
port="3010"
if (location.protocol == "https:") {
port="3011"
}
url = location.protocol+'//'+location.hostname+':'+port
window.open(url,'_blank');
})
$("#lnbits").on("click", function() {
url = 'https://'+location.hostname+':5001'
port="5000"
if (location.protocol == "https:") {
port="5001"
}
url = location.protocol+'//'+location.hostname+':'+port
window.open(url,'_blank');
})
$("#thunderhub").on("click", function() {
url = 'https://'+location.hostname+':3031'
port="3030"
if (location.protocol == "https:") {
port="3031"
}
url = location.protocol+'//'+location.hostname+':'+port
window.open(url,'_blank');
})
@ -52,12 +64,20 @@
})
$("#mempoolspace").on("click", function() {
url = 'http://'+location.hostname+':4080'
port="4080"
if (location.protocol == "https:") {
port="4081"
}
url = location.protocol+'//'+location.hostname+':'+port
window.open(url,'_blank');
})
$("#btcpayserver").on("click", function() {
url = 'http://'+location.hostname+':49392'
port="49392"
if (location.protocol == "https:") {
port="49393"
}
url = location.protocol+'//'+location.hostname+':'+port
window.open(url,'_blank');
})