add support for custom proxies in jellyfin

This commit is contained in:
Fredrik Eriksson 2021-12-28 21:13:00 +01:00
parent d4a62ac76d
commit 089d738911
Signed by: feffe
GPG Key ID: 97FD478B50475788
3 changed files with 22 additions and 2 deletions

View File

@ -1,4 +1,4 @@
AUX jellyfin.conf 182 BLAKE2B 2ca06c6ffae333c1a5750987604ac84ab3aa5519102b34c02c1aaab309f293dff77579d6ba00053d38a38ae8f0a0e240b8d424102134e5813ea5246b1ecb545f SHA512 f74e90d68a273e7373bb50bba96052289c99384b029c5903a65dfc808d18b1900722b1dcdfa8b7eb97b7d0f9b66de38a1bbdae2c454f4eeca56aee7b05f3a068
AUX jellyfin.init 593 BLAKE2B b0af98bfa830f540554b89970d427c15ff2c74634cac6f7fd4c1ba1bb92fc4e719e4b5053a123a5ef3c32c5e82aaf816120f41e22c31f710e60ba89e098afb20 SHA512 c67053c013f23388b9e5caabbe8c832cac918fc6e271d2d0f8a8f624d594ebde028ce9db885cee693742a346e6c3ac0da4a3a46a176856c0802b69ce7217feb5
AUX jellyfin.conf 449 BLAKE2B 2d5b30d8ecd9e84434cfd61bbc07467dc54d1eab3685bc1c2bcd51d1544ead44ffb544e3cfdbfba2fff4e1b9b386f9b2e6d8f8d0a724a8445e615576800b8fb8 SHA512 04e3ae0474e442fe4ee8ce9a0450bf21eb80b6a597080f0d530ad1ece6c82cbc768cb3efe548a70d05fb00c428abadd770c09f1a9642ba567f0d78666c7e297c
AUX jellyfin.init 759 BLAKE2B 9e367ed860676d31e0d3b6c96493331bdc8f28e98699fee9b4ce9766372703a4f0e32afca054f892e6d2bdfe86d49226eac6282152bbd649a03a25191ae538b0 SHA512 7b41b17d9ad6d598c3304a1bb063c190ce79305894fa9dc429144e65860a1212eb6606d9df0850f3390fd8a82fe69c1c70753dd4e86ce841bf8a5505b2820899
DIST jellyfin_10.7.7_amd64.tar.gz 91553323 BLAKE2B ba3008a4cecfd7fa7841153dce8885a1f6c16e65c53b56699b0ad42c2ee19cd982a35d89821d0ccb0a67eff7d0b573e121a36760ebc054edb01d2372c6223154 SHA512 11adfb5f6d5d7aeebbcf0399d1168879abccc49273390466b4a2ab44e4a0833515896e0474160f8e82dcd491db466505a66c9bf293ba3fc1fb9e3e048550fab7
EBUILD jellyfin-bin-10.7.7.ebuild 1126 BLAKE2B a8bcb798f52a5a0ce341cf6f709db48540d953c5485c5ddf4ce296a71df3ae9d78c2c641bcff25f63cb45302142621d219d9a9f00c1b15daa2da46f7d6a7d30f SHA512 80e4fafc3ff47eb67698b2b947e60ef810b19d3a986c98eb8e26869723ee84fee54b5e3fd0b341133555fd13bc577ad476f641e19547de9a0605f5c1132c0fe4

View File

@ -1,5 +1,16 @@
# Parameters for jellyfin
# If you want jellyfin to use a different proxy
# then the rest of the system, you can specify the
# environment variables here
#http_proxy="http://myproxy:3218"
#https_proxy="http://myproxy:3218"
# Default paths and user
# you probably don't want to change this
#jellyfin_user="jellyfin"
#config_dir="/etc/jellyfin"
#log_dir="/var/log/jellyfin"

View File

@ -20,6 +20,15 @@ depend() {
need net
}
start_pre() {
if [ -n "${http_proxy}" ]; then
export http_proxy="${http_proxy}"
fi
if [ -n "${https_proxy}" ]; then
export https_proxy="${https_proxy}"
fi
}
restart() {
stop
sleep 3