summarylogtreecommitdiffstats
path: root/service
diff options
context:
space:
mode:
authorcelogeek2021-04-10 12:34:30 +0200
committercelogeek2021-04-10 12:34:30 +0200
commit892b5946d3c61fa3570b8d0833223f0ce58ccc18 (patch)
tree601ff7ca15d862ff9f38bc9393f7ab3efb08c21b /service
parenta2d92168aafae8c6691e618113bfbc6dbbf734a1 (diff)
downloadaur-892b5946d3c61fa3570b8d0833223f0ce58ccc18.tar.gz
unified config of jitsi-meet on arch
Diffstat (limited to 'service')
-rw-r--r--service38
1 files changed, 38 insertions, 0 deletions
diff --git a/service b/service
new file mode 100644
index 00000000000..a8684a3ee04
--- /dev/null
+++ b/service
@@ -0,0 +1,38 @@
+[Unit]
+Description=Jitsi-Meet Videobridge
+After=network-online.target
+
+[Service]
+EnvironmentFile=/etc/jitsi-videobridge-git/config
+User=jvb
+ExecStart=/usr/lib/jitsi-videobridge-git/jvb.sh ${JVB_OPTS}
+WorkingDirectory=/var/lib/jitsi-videobridge-git
+StateDirectory=jitsi-videobridge-git
+StateDirectoryMode=0750
+LogsDirectory=jitsi-videobridge-git
+LogsDirectoryMode=0750
+ConfigurationDirectory=jitsi-videobridge-git
+ConfigurationDirectoryMode=0700
+
+Restart=on-failure
+RestartSec=2
+
+SuccessExitStatus=143
+
+# more threads for this process
+TasksMax=65000
+# allow more open files for this process
+LimitNPROC=65000
+LimitNOFILE=65000
+
+# Hardening
+NoNewPrivileges=yes
+PrivateTmp=yes
+PrivateDevices=yes
+ProtectHome=yes
+ProtectKernelTunables=yes
+ProtectControlGroups=yes
+ProtectSystem=strict
+
+[Install]
+WantedBy=multi-user.target