1
0

add jellyfin and cert-sorter

This commit is contained in:
= 2025-01-14 14:17:56 -05:00
parent c300116753
commit d4736af727
4 changed files with 17 additions and 1 deletions

View File

@ -1,5 +1,10 @@
FROM ubuntu:24.04
RUN apt update && \
apt install -y openssl && \
apt clean && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /app /etc/letsencrypt /dest/1000
COPY copy.sh /app/copy.sh

View File

@ -1,8 +1,11 @@
#!/bin/bash
rm -v /dest/1000/*.pem
rm -v /dest/1000/cert.p12
cp -v /etc/letsencrypt/live/adguard.balsillie.house-0002/privkey.pem /dest/1000/privkey.pem
cp -v /etc/letsencrypt/live/adguard.balsillie.house-0002/cert.pem /dest/1000/cert.pem
cp -v /etc/letsencrypt/live/adguard.balsillie.house-0002/fullchain.pem /dest/1000/fullchain.pem
openssl pkcs12 -export -in /dest/1000/cert.pem -inkey /dest/1000/privkey.pem -out /dest/1000/cert.p12 -passout pass:
chown -v ubuntu:ubuntu /dest/1000/*.pem
chown -v ubuntu:ubuntu /dest/1000/cert.p12
ls -lh /dest/1000

8
jellyfin/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM jellyfin/jellyfin:10
RUN useradd -u 1000 -U -M jellyfin
RUN chown jellyfin:jellyfin /cache /config
USER jellyfin
WORKDIR /config

View File

@ -1,7 +1,7 @@
myhostname = ${POSTFIX_HOST}
mydomain = ${POSTFIX_DOMAIN}
myorigin = ${POSTFIX_DOMAIN}
mynetworks = 127.0.0.0/8 10.64.0.0/12 10.96.10.10/32 10.96.10.254/32
mynetworks = 127.0.0.0/8 10.64.0.0/12 10.96.10.10/32 10.96.10.254/32 10.96.30.10/32
mydestination = ${POSTFIX_HOST} localhost
biff = no