Switch litellm public to API key, move secret to o001, use module

This commit is contained in:
Joshua Bell 2026-01-21 19:54:14 -06:00
parent d706c122b1
commit eebf354173
9 changed files with 141 additions and 313 deletions

View file

@ -1,6 +1,10 @@
{
config,
...
}:
let
apiKeyFile = config.age.secrets.litellm_public_api_key.path;
in
{
# JUST A TEST TODO remove
containers.wasabi = {
@ -234,6 +238,10 @@
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://100.64.0.13:8095";
extraConfig = ''
# API key auth - secret file contains: if ($http_authorization != "Bearer sk-xxx") { return 401; }
include ${apiKeyFile};
'';
};
};