Done
This commit is contained in:
12
deploy/systemd/firewall-frontend.service
Normal file
12
deploy/systemd/firewall-frontend.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Firewall Frontend Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/opt/firewall/frontend
|
||||
ExecStart=/usr/bin/npm run preview -- --port 3000 --host 0.0.0.0
|
||||
Restart=always
|
||||
User=www-data
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
13
deploy/systemd/firewall.service
Normal file
13
deploy/systemd/firewall.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Firewall Management Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=/opt/firewall/config/.env
|
||||
WorkingDirectory=/opt/firewall/backend
|
||||
ExecStart=/usr/local/bin/firewall
|
||||
Restart=always
|
||||
User=firewall-user
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user