Skip to content

Commit

Permalink
certbot email addr
Browse files Browse the repository at this point in the history
  • Loading branch information
inv4fee2020 committed Nov 14, 2023
1 parent fe90d40 commit 396d936
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,12 @@ FUNC_CERTBOT(){
read -p "Enter a comma-separated list of domains, A record followed by CNAME records for RPC & WSS (e.g., domain1.com,domain2.com): " USER_DOMAINS
fi


# Prompt for user email if not provided as a variable
if [ -z "$CERT_EMAIL" ]; then
read -p "Enter your email address for certbot updates: " CERT_EMAIL
fi

echo -e "${YELLOW}$USER_DOMAINS${NC}"

IFS=',' read -ra DOMAINS_ARRAY <<< "$USER_DOMAINS"
Expand All @@ -286,7 +292,7 @@ FUNC_CERTBOT(){
sudo systemctl enable nginx

# Request and install a Let's Encrypt SSL/TLS certificate for Nginx
sudo certbot --nginx -m "[email protected]" -n --agree-tos -d "$USER_DOMAINS"
sudo certbot --nginx -m "$CERT_EMAIL" -n --agree-tos -d "$USER_DOMAINS"

}

Expand Down
1 change: 1 addition & 0 deletions xf_node.vars
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ NGX_CONF_NEW="/etc/nginx/sites-available/xinfin"

# *** UPDATE WITH YOUR VALUES - A Record 1st, RPC CNAME 2nd, WS CNAME 3rd *** #
USER_DOMAINS=""
CERT_EMAIL=""


NGX_MAINNET_RPC="8545"
Expand Down

0 comments on commit 396d936

Please sign in to comment.