Update to 2021-04-28 17:00

master
Daniel Berteaud 4 years ago
parent d3aa241a40
commit 6cabc899d9
  1. 7
      roles/jitsi_jibri/tasks/user.yml
  2. 2
      roles/jitsi_jibri/templates/jitsi-jibri-xorg.service.j2
  3. 6
      roles/jitsi_jibri/templates/jitsi-jibri.service.j2

@ -1,5 +1,10 @@
--- ---
- name: Create jibri user account - name: Create jibri user account
user: name={{ jitsi_jibri_user }} home={{ jitsi_root_dir }}/jibri system=True user:
name: "{{ jitsi_jibri_user }}"
home: "{{ jitsi_root_dir }}/jibri"
groups:
- tty
- video
tags: jitsi tags: jitsi

@ -6,7 +6,7 @@ After=network.target
User={{ jitsi_jibri_user }} User={{ jitsi_jibri_user }}
Group={{ jitsi_jibri_user }} Group={{ jitsi_jibri_user }}
Environment=DISPLAY=:0 Environment=DISPLAY=:0
ExecStart=/usr/bin/Xorg -nocursor -noreset +extension RANDR +extension RENDER -logfile /dev/stdout -config {{ jitsi_root_dir }}/jibri/xorg-video-dummy.conf :0 ExecStart=/usr/bin/Xorg -nocursor -noreset +extension RANDR +extension RENDER -config {{ jitsi_root_dir }}/etc/jibri/xorg-video-dummy.conf :0
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
KillMode=process KillMode=process
Restart=on-failure Restart=on-failure

@ -8,14 +8,10 @@ SuccessExitStatus=143
User={{ jitsi_jibri_user }} User={{ jitsi_jibri_user }}
Group={{ jitsi_jibri_user }} Group={{ jitsi_jibri_user }}
PrivateTmp=true PrivateTmp=true
PrivateDevices=true
ProtectHome=true
ProtectSystem=full
ReadOnlyDirectories={{ jitsi_root_dir }}/etc {{ jitsi_root_dir }}/jibri
Restart=on-failure Restart=on-failure
StartLimitInterval=0 StartLimitInterval=0
RestartSec=30 RestartSec=30
ExecStart=/bin/java -Dconfig.file="{{ jitsi_root_dir }}/etc/jibri/jibri.conf" -jar {{ jitsi_root_dir }}/jibri/jibri.jar ExecStart=/bin/java -Dconfig.file={{ jitsi_root_dir }}/etc/jibri/jibri.conf -jar {{ jitsi_root_dir }}/jibri/jibri.jar
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

Loading…
Cancel
Save