diff --git a/.DS_Store b/.DS_Store index e77f530..f0f93a2 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.github/workflows/compile-ngix-package.yml b/.github/workflows/compile-ngix-package.yml new file mode 100644 index 0000000..5a9bd31 --- /dev/null +++ b/.github/workflows/compile-ngix-package.yml @@ -0,0 +1,23 @@ +name: Compile AlphaXPanel Packages + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Compile NGINX + run: | + ls + diff --git a/compilators/debian/control b/compilators/debian/control new file mode 100644 index 0000000..9a5aa64 --- /dev/null +++ b/compilators/debian/control @@ -0,0 +1,10 @@ +Source: alphax-nginx +Package: alphax-nginx +Priority: optional +Version: 1.22.0 +Section: web +Maintainer: Cloud Vision Ltd. +Homepage: https://www.cloudvision.bg +Architecture: amd64 +Depends: nginx +Description: Nginx web server diff --git a/compilators/debian/custom-ngix.txt b/compilators/debian/custom-ngix.txt new file mode 100644 index 0000000..3c447a4 --- /dev/null +++ b/compilators/debian/custom-ngix.txt @@ -0,0 +1,34 @@ +apt install build-essential dpkg-dev debhelper autotools-dev libgeoip-dev libssl-dev libpcre3-dev zlib1g-dev + +wget http://nginx.org/download/nginx-1.20.0.tar.gz +tar -zxvf nginx-1.20.0.tar.gz +cd nginx-1.20.0 + +./configure --prefix=/usr/local/alphax/nginx +./configure + --prefix=/var/www/html + --sbin-path=/usr/sbin/nginx + --conf-path=/etc/nginx/nginx.conf + --http-log-path=/var/log/nginx/access.log + --error-log-path=/var/log/nginx/error.log + --with-pcre + --lock-path=/var/lock/nginx.lock + --pid-path=/var/run/nginx.pid + --with-http_ssl_module + --with-http_image_filter_module=dynamic + --modules-path=/etc/nginx/modules + --with-http_v2_module + --with-stream=dynamic + --with-http_addition_module + --with-http_mp4_module + + + +dpkg-deb -Zxz --build +dpkg-deb --build mynginx + +for install +sudo dpkg -i package-name.deb + +for remove +sudo dpkg -r package-name diff --git a/compilators/debian/nginx-compile.sh b/compilators/debian/nginx-compile.sh new file mode 100644 index 0000000..f35c191 --- /dev/null +++ b/compilators/debian/nginx-compile.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Install dependencies +#apt install build-essential dpkg-dev debhelper autotools-dev libgeoip-dev libssl-dev libpcre3-dev zlib1g-dev + +rm -rf "alphaXpanel-compilators" + +mkdir "alphaXpanel-compilators" +mkdir "alphaXpanel-compilators/nginx" +cd "alphaXpanel-compilators/nginx" + +#Download nginx source +wget http://nginx.org/download/nginx-1.20.0.tar.gz +tar -zxvf nginx-1.20.0.tar.gz +cd nginx-1.20.0 + +# Configure nginx +./configure --prefix=/usr/local/alphax/nginx +make +make install + +mkdir alphax-nginx-1.20.0 +cd alphax-nginx-1.20.0 +mkdir DEBIAN +mkdir usr +mkdir usr/local +mkdir usr/local/alphax + +mv /usr/local/alphax/nginx usr/local/alphax +cp control DEBIAN + + diff --git a/compilators/debian/nginx.service.txt b/compilators/debian/nginx.service.txt new file mode 100644 index 0000000..664b287 --- /dev/null +++ b/compilators/debian/nginx.service.txt @@ -0,0 +1,22 @@ + +# Create nginx service +cat > /etc/systemd/system/alphax-nginx.service << EOF +[Unit] +Description=alphax-nginx +After=network.target + +[Service] +Type=forking +ExecStart=/usr/local/alphax/nginx/sbin/nginx +ExecReload=/usr/local/alphax/nginx/sbin/nginx -s reload +ExecStop=/usr/local/alphax/nginx/sbin/nginx -s quit +PrivateTmp=true + +[Install] +WantedBy=multi-user.target +EOF + +# Start nginx service +systemctl daemon-reload +systemctl enable alphax-nginx.service +systemctl start alphax-nginx.service diff --git a/configurations/ubuntu/nginx/panel.conf b/configurations/ubuntu/nginx/panel.conf index 0976fe3..6c5cd7f 100644 --- a/configurations/ubuntu/nginx/panel.conf +++ b/configurations/ubuntu/nginx/panel.conf @@ -1,3 +1,5 @@ +user alphaxweb; + server { listen 3036; listen [::]:3036; diff --git a/web/.DS_Store b/web/.DS_Store index 83d8c8d..47b3e34 100644 Binary files a/web/.DS_Store and b/web/.DS_Store differ diff --git a/web/public/index.php b/web/public/index.php index 24d0093..ad45f1f 100644 --- a/web/public/index.php +++ b/web/public/index.php @@ -1,4 +1,16 @@