updateplexpass: use Plex Pass key to fetch new versions

This commit is contained in:
Luke Granger-Brown 2023-01-08 01:54:22 +00:00
parent 40ed8549b8
commit 653ac8f5f0
2 changed files with 3 additions and 1 deletions

View file

@ -3,7 +3,7 @@
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
VERSION_JSON_URL="https://plex.tv/pms/downloads/5.json?channel=plexpass" VERSION_JSON_URL="https://plex.tv/pms/downloads/5.json?channel=plexpass&X-Plex-Token=$(vault kv get -field=token kv/apps/plex-pass)"
alias jq="nix run depot.pkgs.jq -c jq" alias jq="nix run depot.pkgs.jq -c jq"
VERSION_JSON="$(curl "$VERSION_JSON_URL")" VERSION_JSON="$(curl "$VERSION_JSON_URL")"

View file

@ -66,6 +66,7 @@
''; '';
my.apps.authentik = {}; my.apps.authentik = {};
my.apps.gitlab-runner = {}; my.apps.gitlab-runner = {};
my.apps.plex-pass = {};
my.servers.etheroute-lon01.apps = [ "pomerium" ]; my.servers.etheroute-lon01.apps = [ "pomerium" ];
my.servers.porcorosso.apps = [ "quotesdb" ]; my.servers.porcorosso.apps = [ "quotesdb" ];
@ -76,5 +77,6 @@
my.servers.bvm-matrix.apps = [ "turn" "matrix-synapse" ]; my.servers.bvm-matrix.apps = [ "turn" "matrix-synapse" ];
my.servers.bvm-prosody.apps = [ "turn" ]; my.servers.bvm-prosody.apps = [ "turn" ];
my.servers.bvm-heptapod.apps = [ "gitlab-runner" ]; my.servers.bvm-heptapod.apps = [ "gitlab-runner" ];
my.servers.bvm-nixosmgmt.apps = [ "plex-pass" ];
my.servers.blade-tuvok.apps = [ "fup" ]; my.servers.blade-tuvok.apps = [ "fup" ];
} }