This commit is contained in:
Bozhidar Slaveykov 2023-11-23 21:46:29 +02:00
parent fcda96c111
commit 5bb1b3e626
2 changed files with 21 additions and 8 deletions

View file

@ -1,14 +1,14 @@
# Server globals
user nginx;
worker_processes 1;
worker_rlimit_nofile 65535;
error_log /var/log/alpha-x-panel/nginx-error.log;
pid /run/alpha-x-panel-nginx.pid;
pcre_jit on;
# user nginx;
# worker_processes 1;
# worker_rlimit_nofile 65535;
# error_log /var/log/alpha-x-panel/nginx-error.log;
# pid /run/alpha-x-panel-nginx.pid;
# pcre_jit on;
server {
listen 8083 ssl;
listen [::]:8083 ssl;
listen 3036;
listen [::]:3036;
server_name _;
root /usr/local/alpha-x-panel/web;

View file

@ -47,5 +47,18 @@ done
systemctl start nginx
systemctl enable nginx
# Change NGINX index.html
rm -rf /var/www/html/*
cp $MAIN_DIR/samples/sample-index.html /var/www/html/index.html
# Add NGINX config
cp $MAIN_DIR/configurations/ubuntu/nginx/panel.conf /etc/nginx/sites-available/alphaxpanel.conf
# Create a symbolic link
if [ -f /etc/nginx/sites-enabled/alphaxpanel.conf ]; then
rm -rf /etc/nginx/sites-enabled/alphaxpanel.conf
fi
ln -s /etc/nginx/sites-available/alphaxpanel.conf /etc/nginx/sites-enabled/alphaxpanel.conf
# Restart NGINX
systemctl restart nginx