new librechat api #80
1 changed files with 2 additions and 11 deletions
|
|
@ -18,16 +18,11 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
inherit port;
|
inherit port;
|
||||||
externalUrl = "https://${fqdn}";
|
externalUrl = "https://${fqdn}";
|
||||||
|
environmentFile = config.sops.templates.librechat-env-file.path;
|
||||||
|
|
||||||
# environment = {
|
# environment = {
|
||||||
# ALLOW_REGISTRATION = "true";
|
# ALLOW_REGISTRATION = "true";
|
||||||
# };
|
# };
|
||||||
|
|
||||||
environmentFiles = {
|
|
||||||
librechat = config.sops.templates.librechat-env.path;
|
|
||||||
meilisearch = config.sops.templates.meili-env.path;
|
|
||||||
ragApi = null;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."${fqdn}" = {
|
services.nginx.virtualHosts."${fqdn}" = {
|
||||||
|
|
@ -60,16 +55,12 @@ in
|
||||||
secrets."librechat/creds-iv" = { };
|
secrets."librechat/creds-iv" = { };
|
||||||
secrets."librechat/meili-master-key" = { };
|
secrets."librechat/meili-master-key" = { };
|
||||||
|
|
||||||
templates.librechat-env.content = ''
|
templates.librechat-env-file.content = ''
|
||||||
JWT_SECRET=${config.sops.placeholder."librechat/jwt-secret"}
|
JWT_SECRET=${config.sops.placeholder."librechat/jwt-secret"}
|
||||||
JWT_REFRESH_SECRET=${config.sops.placeholder."librechat/jwt-refresh-secret"}
|
JWT_REFRESH_SECRET=${config.sops.placeholder."librechat/jwt-refresh-secret"}
|
||||||
CREDS_KEY=${config.sops.placeholder."librechat/creds-key"}
|
CREDS_KEY=${config.sops.placeholder."librechat/creds-key"}
|
||||||
CREDS_IV=${config.sops.placeholder."librechat/creds-iv"}
|
CREDS_IV=${config.sops.placeholder."librechat/creds-iv"}
|
||||||
MEILI_MASTER_KEY=${config.sops.placeholder."librechat/meili-master-key"}
|
MEILI_MASTER_KEY=${config.sops.placeholder."librechat/meili-master-key"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
templates.meili-env.content = ''
|
|
||||||
MEILI_MASTER_KEY=${config.sops.placeholder."librechat/meili-master-key"}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue