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