Actually finished Nginx Configs
This commit is contained in:
parent
4771d8dfc9
commit
f943c3ff98
|
@ -31,14 +31,13 @@ PRIVILEGED=0
|
||||||
SCRIPT_CONTENT=$(cat <<'EOF'
|
SCRIPT_CONTENT=$(cat <<'EOF'
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Update package list and install nginx, unzip and curl
|
# Installing Nginx and Enabling it
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get upgrade -y
|
apt-get upgrade -y
|
||||||
apt-get install -y nginx-full unzip curl
|
apt-get install -y nginx-full unzip curl wget
|
||||||
|
|
||||||
# Start nginx and enable service
|
|
||||||
systemctl start nginx
|
systemctl start nginx
|
||||||
systemctl enable nginx
|
systemctl enable nginx
|
||||||
|
# Nginx Install end
|
||||||
|
|
||||||
# Setting Nginx Config Files
|
# Setting Nginx Config Files
|
||||||
cat << 'EOT' > /etc/nginx/conf.d/512mb.ch.conf
|
cat << 'EOT' > /etc/nginx/conf.d/512mb.ch.conf
|
||||||
|
@ -235,11 +234,22 @@ EOT
|
||||||
cat << 'EOT' > /var/www/ssl/ssl-dhparams.pem
|
cat << 'EOT' > /var/www/ssl/ssl-dhparams.pem
|
||||||
DHPARAMS-HERE
|
DHPARAMS-HERE
|
||||||
EOT
|
EOT
|
||||||
|
# Nginx Config files end
|
||||||
|
|
||||||
|
#Installing Nginx-UI
|
||||||
bash <(curl -L -s https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) install
|
bash <(curl -L -s https://raw.githubusercontent.com/0xJacky/nginx-ui/master/install.sh) install
|
||||||
|
|
||||||
systemctl start nginx-ui
|
systemctl start nginx-ui
|
||||||
systemctl enable nginx-ui
|
systemctl enable nginx-ui
|
||||||
|
#End Nginx-UI
|
||||||
|
|
||||||
|
# Pulling Website Data
|
||||||
|
mkdir ./temp-web
|
||||||
|
cd ./temp-web
|
||||||
|
wget 123.123.123.126/512mb.ch.zip
|
||||||
|
unzip 512mb.ch.zip
|
||||||
|
mv 512mb.ch /var/www/
|
||||||
|
chown -R nginx:nginx /var/www/
|
||||||
|
# Done Website
|
||||||
|
|
||||||
|
|
||||||
echo "Nginx has been installed and configured."
|
echo "Nginx has been installed and configured."
|
||||||
|
|
Loading…
Reference in New Issue