Commit Graph

9 Commits (0e6cc4882ddde5a74fdbe9974a75690177f0d3c3)

Author SHA1 Message Date
Dustin a00ffd10df r/jellyfin: Fix system.xml template whitespace
Jellyfin is one of those stupid programs that thinks it needs to mutate
its own config.  At startup, it apparently reads `system.xml` and then
writes it back out.  When it does this, it trims the final newline from
the file.  Then, the next time Ansible runs, the template rewrites the
file with the trailing newline, and thus determines that the file has
changed and restarts the service.  This cycle has been going on for a
while and is rather annoying.
2024-12-12 06:36:23 -06:00
Dustin 9f30998fbf r/jellyfin: Enable Prometheus metrics
Jellyfin can expose metrics in Prometheus format, but this functionality
is disabled by default.  To enable it, we must set `EnableMetrics` in
the configuration file.  This commit adds a template configuration file
that uses the `jellyfin_enable_metrics` Ansible variable to control this
value.
2024-11-05 06:21:38 -06:00
Dustin 226232414f r/jellyfin: Fix HAProxy vhost
Without including the settings from `ssl.include`, the virtual host
bound to port 8443 expects to handle plain HTTP traffic, rather than
HTTPS.
2024-09-01 17:33:22 -05:00
Dustin 921a12cf1f r/jellyfin: Add virtual host for HAProxy
Expose a virtual host on a separate TCP port that uses the PROXY
protocol.  This way, HAProxy can pass the original client IP address to
Jellyfin without terminating the TLS connection.
2024-09-01 12:40:20 -05:00
Dustin 2864a4185c 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.
2024-09-01 12:39:14 -05:00
Dustin 4c0d5bb473 r/jellyfin: Fix EROFS when starting container
Even with `Network=host`, Podman tries to write to
`/etc/containers/network` for some reason.  Fortunately, it doesn't
actually need to, so we can trick it into working by mounting an empty
*tmpfs* filesystem there.
2024-05-26 12:03:14 -05:00
Dustin 5287ff601b r/jellyfin: Enable service auto restart 2024-01-22 20:37:21 -06:00
Dustin 1b63332872 r/jellyfin: Restrict HTTPS redirect to Jellyfin
Since Jellyfin is running on the file server, which also hosts a few
other websites that do not define virtual hosts, the HTTP-to-HTTPS
redirect was applied to *all* requests.  To avoid this, we simply add a
rewrite condition so that the redirect only applies to requests for
Jellyfin.
2023-09-13 10:06:12 -05:00
Dustin a2b3f9b5b9 jellyfin: Deploy Jellyfin media server
Jellyfin is a multimedia library manager. Clients can browse and stream
music, movies, and TV shows from the server and play them locally
(including in the browser).
2023-09-12 13:38:35 -05:00