r/jellyfin: Mount LDAP CA certificate in container

In order to enable authentication using LDAP over TLS in Jellyfin, we
need to expose the CA certificate that issues the LDAP server
certificates to the container.
frigate-exporter
Dustin 2024-09-01 12:39:14 -05:00
parent db74e9ac3f
commit 2864a4185c
3 changed files with 13 additions and 0 deletions

View File

@ -6,6 +6,7 @@ jellyfin_media_dirs:
- /srv/cifs/TV Shows - /srv/cifs/TV Shows
jellyfin_server_name: jellyfin.pyrocufflink.blue jellyfin_server_name: jellyfin.pyrocufflink.blue
jellyfin_server_url: https://{{ jellyfin_server_name }} jellyfin_server_url: https://{{ jellyfin_server_name }}
jellyfin_ldap_ca_cert: /etc/pki/ca-trust/source/anchors/dch-root-ca-r2.crt
jellyfin_ssl_certificate: >- jellyfin_ssl_certificate: >-
{{ apache_ssl_certificate }} {{ apache_ssl_certificate }}

View File

@ -62,6 +62,15 @@
- systemd - systemd
- container - container
- name: ensure selinux allows containers to read certificate files
seboolean:
name: container_read_certs
persistent: true
state: true
when: jellyfin_ldap_ca_cert|d
tags:
- selinux
- name: flush handlers - name: flush handlers
meta: flush_handlers meta: flush_handlers

View File

@ -14,6 +14,9 @@ Volume=/var/cache/jellyfin:/cache:rw,z
{% for path in jellyfin_media_dirs %} {% for path in jellyfin_media_dirs %}
Volume={{ path }}:/media/{{ path | basename }}:ro Volume={{ path }}:/media/{{ path | basename }}:ro
{% endfor %} {% endfor %}
{% if jellyfin_ldap_ca_cert|d %}
Volume={{ jellyfin_ldap_ca_cert }}:/config/ldap-ca.crt:ro
{% endif %}
Network=host Network=host
NoNewPrivileges=yes NoNewPrivileges=yes