Switch litellm public to API key, move secret to o001, use module
This commit is contained in:
parent
d706c122b1
commit
eebf354173
9 changed files with 141 additions and 313 deletions
|
|
@ -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};
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue