mirror of
https://github.com/myronblair/novacpx
synced 2026-06-30 17:50:41 -05:00
Run panel on dedicated novacpx-web Nginx service; fix auth/transaction methods
- deploy/nginx-panel.conf: standalone Nginx config for ports 8880-8883
- deploy/novacpx-web.service: systemd unit, survives apache2/nginx stop
- server_setup.php: fix Auth::requireRole() -> require('admin')
- DB.php: add beginTransaction()/commit()/rollback() methods
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=NovaCPX Panel Web Server (dedicated Nginx)
|
||||
After=network.target php8.3-fpm.service
|
||||
Wants=php8.3-fpm.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/run/novacpx-nginx.pid
|
||||
ExecStartPre=/usr/sbin/nginx -t -c /etc/novacpx/nginx-panel.conf
|
||||
ExecStart=/usr/sbin/nginx -c /etc/novacpx/nginx-panel.conf
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||
TimeoutStopSec=5
|
||||
PrivateTmp=true
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user