Moving BTCPay to port 23001

This commit is contained in:
rootzoll 2020-01-27 04:12:03 +01:00
parent 90338dee2c
commit 718f6b62f5
2 changed files with 7 additions and 6 deletions

View file

@ -33,8 +33,8 @@ ${toraddress}
# IP + Domain
whiptail --title " BTCPay Server (Domain) " --msgbox "Open the following URL in your local web browser:
https://${localip}:23000\n
To make BTCPay reachable from the outside see 'BTCPay'
https://${localip}:23001\n
For details or troubleshoot check for 'BTCPay'
in README of https://github.com/rootzoll/raspiblitz
" 11 67
fi
@ -323,7 +323,8 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
sudo rm -f /home/btcpay/.btcpayserver/Main/settings.config
sudo rm -f /etc/systemd/system/btcpayserver.service
sudo rm -f /etc/nginx/sites-available/btcpayserver
sudo rm -f /etc/nginx/sites-available/btcpayserver
sudo rm -rf /mnt/hdd/tor/btcpay 2>/dev/null
echo "OK BTCPayServer removed."
else
echo "BTCPayServer is not installed."

View file

@ -81,7 +81,7 @@ echo ""
if [ $ownDomain -eq 1 ]; then
echo ""
echo "***"
echo "Confirm that the ports 80, 443 and 9735 are forwarded to the IP of your RaspiBlitz by pressing [ENTER] or use [CTRL + C] to exit"
echo "Confirm that the ports 443 and 9735 are forwarded to the IP of your RaspiBlitz AND the port 80 on your router forwards to port 23001 of your RaspiBlitz by pressing [ENTER] or use [CTRL + C] to exit"
read key
echo ""
@ -107,7 +107,7 @@ if [ $ownDomain -eq 1 ]; then
# install nginx and certbot
sudo apt-get install nginx-full certbot -y
sudo ufw allow 80 comment 'btcpayserver TCP'
sudo ufw allow 23001 comment 'btcpayserver TCP'
sudo ufw allow 443 comment 'btcpayserver SSL'
# get SSL cert
@ -170,7 +170,7 @@ proxy_set_header Proxy \"\";
server {
listen 80 default_server;
listen 23001 default_server;
server_name _;
return 301 https://\$host\$request_uri;
}