From ee12057a778a6036a678f4e484d2d57edbc0d16f Mon Sep 17 00:00:00 2001 From: Ray Elliott Date: Thu, 28 May 2020 19:21:28 +0300 Subject: [PATCH] Add 'initial-setup.sh' --- initial-setup.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 initial-setup.sh diff --git a/initial-setup.sh b/initial-setup.sh new file mode 100644 index 0000000..cfcb496 --- /dev/null +++ b/initial-setup.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +sudo apt upgrade +sudo apt install -y tmux ufw certbot + +sudo ufw allow ssh +sudo ufw allow http +sudo ufw allow https +sudo ufw allow 7080 +sudo ufw enable + +wget --no-check-certificate https://raw.githubusercontent.com/litespeedtech/ols1clk/master/ols1clk.sh && sudo bash ols1clk.sh -w + +ln -s /usr/local/lsws/wordpress +sudo rm -Rf /usr/local/lsws/wordpress/* + +sudo certbot certonly --webroot --webroot-path /usr/local/lsws/wordpress + +sudo /usr/local/lsws/admin/misc/admpass.sh + +echo "NOW VISIT :7080" +echo " login and set SSL" +echo " Listeners > SSL > SSL Private Key & Certificate" +echo " Private Key File: /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem" +echo " Private Key File: /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem" \ No newline at end of file