feat(librechat): allow setting arbitrary environment variables from text and file
This commit is contained in:
parent
ff368be300
commit
c5ac2a86fc
2 changed files with 19 additions and 14 deletions
|
@ -29,7 +29,14 @@
|
|||
enable = true;
|
||||
openFirewall = true;
|
||||
env = {
|
||||
TEST_ENV_VAR = "hello";
|
||||
HOST = "0.0.0.0";
|
||||
MONGO_URI = "mongodb://apollo:27017";
|
||||
};
|
||||
credentials = {
|
||||
CREDS_KEY = config.sops.secrets."librechat/creds_key".path;
|
||||
CREDS_IV = config.sops.secrets."librechat/creds_iv".path;
|
||||
JWT_SECRET = config.sops.secrets."librechat/jwt_secret".path;
|
||||
JWT_REFRESH_SECRET = config.sops.secrets."librechat/jwt_refresh_secret".path;
|
||||
};
|
||||
settings = {
|
||||
version = "1.0.8";
|
||||
|
@ -61,13 +68,5 @@
|
|||
};
|
||||
};
|
||||
|
||||
environment.persistence."/persist".directories = [
|
||||
{
|
||||
directory = config.server.librechat.path;
|
||||
user = config.server.librechat.user;
|
||||
group = config.server.librechat.group;
|
||||
}
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue