Skip to content

Commit

Permalink
start nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
bap2pecs committed Nov 22, 2024
1 parent 0032920 commit bc1820e
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions scripts/l2/proxy-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ sed -i 's/\${CERTBOT_DOMAIN_SUFFIX}/'"${CERTBOT_DOMAIN_SUFFIX}"'/g' /etc/nginx/s

# 5. enable the nginx config files
mkdir -p /etc/nginx/sites-enabled
ln -s /etc/nginx/sites-available/l2-rpc.conf /etc/nginx/sites-enabled/
ln -s /etc/nginx/sites-available/bridge.conf /etc/nginx/sites-enabled/
ln -s /etc/nginx/sites-available/l2-explorer.conf /etc/nginx/sites-enabled/
ln -sf /etc/nginx/sites-available/l2-rpc.conf /etc/nginx/sites-enabled/
ln -sf /etc/nginx/sites-available/bridge.conf /etc/nginx/sites-enabled/
ln -sf /etc/nginx/sites-available/l2-explorer.conf /etc/nginx/sites-enabled/

# 6. verify the nginx config files
nginx -t

# 7. restart nginx
#
# after running this, you can check the status of nginx by:
# systemctl status nginx
#
# see logs
# journalctl -u nginx.service -f
systemctl start nginx
systemctl enable nginx

0 comments on commit bc1820e

Please sign in to comment.