Add systemd services and single-server deployment examples
This commit is contained in:
1 parent
c20c41b2cd
commit
57e991ea2a
10 files changed
+306
-62
No files matched your search
@@ -0,0 +1,25 @@
|
||||
[Unit]
|
||||
Description=Coulobre Panel web service
|
||||
Wants=network-online.target
|
||||
After=network-online.target mariadb.service
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
User=coulobre-panel
|
||||
Group=www-data
|
||||
EnvironmentFile=/etc/coulobre/panel.env
|
||||
WorkingDirectory=/opt/coulobre
|
||||
RuntimeDirectory=coulobre-panel
|
||||
RuntimeDirectoryMode=0750
|
||||
UMask=0007
|
||||
ExecStart=/opt/coulobre/bin/gunicorn --bind unix:/run/coulobre-panel/panel.sock --umask 0o007 --no-control-socket --forwarder-headers= coulobre.wsgi:application
|
||||
KillMode=mixed
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectHome=true
|
||||
ProtectSystem=strict
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user