feat(sonarr): bump to 4.0

This commit is contained in:
ange 2024-01-25 10:40:35 +01:00
parent d834631403
commit f6af1454be
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
4 changed files with 10 additions and 35 deletions

View File

@ -458,14 +458,14 @@ no-tcp-relay
# configuration file. # configuration file.
# Use PEM file format. # Use PEM file format.
# #
cert=/etc/letsencrypt/live/$BASE_URL/fullchain.pem; cert=/etc/letsencrypt/live/$BASE_URL/fullchain.pem
# Private key file. # Private key file.
# Use an absolute path or path relative to the # Use an absolute path or path relative to the
# configuration file. # configuration file.
# Use PEM file format. # Use PEM file format.
# #
pkey=/etc/letsencrypt/live/$BASE_URL/privkey.pem; pkey=/etc/letsencrypt/live/$BASE_URL/privkey.pem
# Private key file password, if it is in encoded format. # Private key file password, if it is in encoded format.
# This option has no default value. # This option has no default value.

View File

@ -227,11 +227,7 @@ hostname_replace:
# '(.*\.)?youtube\.com$': 'invidious.example.com' # '(.*\.)?youtube\.com$': 'invidious.example.com'
# '(.*\.)?youtu\.be$': 'invidious.example.com' # '(.*\.)?youtu\.be$': 'invidious.example.com'
# '(.*\.)?youtube-noocookie\.com$': 'yotter.example.com' # '(.*\.)?youtube-noocookie\.com$': 'yotter.example.com'
# '(.*\.)?reddit\.com$': 'teddit.example.com'
# '(.*\.)?redd\.it$': 'teddit.example.com'
# '(www\.)?twitter\.com$': 'nitter.example.com' # '(www\.)?twitter\.com$': 'nitter.example.com'
# # to remove matching host names from result list, set value to false
# 'spam\.example\.com': false
checker: checker:
# disable checker when in debug mode # disable checker when in debug mode

View File

@ -8,36 +8,15 @@ RUN apt-get update \
ca-certificates \ ca-certificates \
curl \ curl \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
ARG SONARR="https://services.sonarr.tv/v1/download/main/latest?version=3&os=linux" ARG SONARR="https://services.sonarr.tv/v1/download/main/latest?version=4&os=linux&arch=x64"
RUN curl -L "$SONARR" | tar xz --strip-components=1 RUN curl -L "$SONARR" | tar xz --strip-components=1
FROM base FROM base
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
libmono-corlib4.5-cil \ libicu72 \
libmono-microsoft-csharp4.0-cil \ libsqlite3-0 \
libmono-posix4.0-cil \ libssl3 \
libmono-system-componentmodel-dataannotations4.0-cil \
libmono-system-configuration-install4.0-cil \
libmono-system-configuration4.0-cil \
libmono-system-core4.0-cil \
libmono-system-data-datasetextensions4.0-cil \
libmono-system-data4.0-cil \
libmono-system-identitymodel4.0-cil \
libmono-system-io-compression4.0-cil \
libmono-system-net-http4.0-cil \
libmono-system-numerics4.0-cil \
libmono-system-runtime-serialization4.0-cil \
libmono-system-security4.0-cil \
libmono-system-servicemodel4.0a-cil \
libmono-system-serviceprocess4.0-cil \
libmono-system-transactions4.0-cil \
libmono-system-web4.0-cil \
libmono-system-xml-linq4.0-cil \
libmono-system-xml4.0-cil \
libmono-system4.0-cil \
mediainfo \
mono-runtime \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY --from=build /app/ . COPY --from=build /app/ .
COPY entrypoint.sh /usr/local/bin/ COPY entrypoint.sh /usr/local/bin/
@ -45,4 +24,4 @@ RUN useradd -m app
VOLUME /config/ VOLUME /config/
EXPOSE 8989 EXPOSE 8989
ENTRYPOINT ["entrypoint.sh"] ENTRYPOINT ["entrypoint.sh"]
CMD ["mono", "Sonarr.exe", "-nobrowser", "-data=/config"] CMD ["./Sonarr", "-nobrowser", "-data=/config"]

View File

@ -17,7 +17,7 @@ server {
location / { location / {
proxy_pass http://sonarr:8989; proxy_pass http://sonarr:8989;
proxy_set_header Host $proxy_host; proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;