Skip to content

Commit d26e4cc

Browse files
committed
feat: Server install fixed
1 parent 51a9009 commit d26e4cc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

servers/server.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function set_settings_from_branch {
1515
DOMAIN=blockchain-api-staging.tonomy.foundation
1616
;;
1717
"testnet")
18-
IP=164.90.176.113
18+
IP=64.227.67.205
1919
NODE_ENV=testnet
2020
DOMAIN=blockchain-api-testnet.pangea.web4.world
2121
;;
@@ -85,11 +85,10 @@ function local_copy_files_to_server {
8585
# Setup SSL certificate. Need to copy the nginx.conf file and the cloudflare.ini file to the server first.
8686
function server_setup_ssl {
8787
sudo apt install -y certbot python3-certbot-dns-cloudflare
88-
certbot certonly --agree-tos -m developers@tonomy.foundation --dns-cloudflare --dns-cloudflare-credentials /tmp/.secrets/certbot/cloudflare.ini -d "${DOMAIN}"
88+
certbot certonly --agree-tos -m developers@tonomy.foundation --dns-cloudflare --dns-cloudflare-credentials /tmp/.secrets/certbot/cloudflare.ini -d "${DOMAIN}" --non-interactive
8989
rm /tmp/.secrets/certbot/cloudflare.ini
9090

9191
sudo apt install -y nginx
92-
cp ./testnet/nginx.conf /etc/nginx/conf.d/default.conf
9392
sudo systemctl restart nginx
9493
}
9594

0 commit comments

Comments
 (0)