mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2021-12-31 14:05
This commit is contained in:
21
roles/wbo/templates/wbo.service.j2
Normal file
21
roles/wbo/templates/wbo.service.j2
Normal file
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Online collaborative Whiteboard (Instance {{ wbo_id }})
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=wbo_{{ wbo_id }}
|
||||
Group=wbo_{{ wbo_id }}
|
||||
Environment=PORT={{ wbo_port }}
|
||||
Environment=NODE_ENV='production'
|
||||
ExecStart=/bin/node {{ wbo_root_dir }}/app/server/server.js
|
||||
PrivateTmp=yes
|
||||
PrivateDevices=yes
|
||||
ProtectSystem=full
|
||||
ProtectHome=yes
|
||||
NoNewPrivileges=yes
|
||||
MemoryLimit=512M
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user