revert to old api
Some checks failed
Build hosts / build-hosts (pull_request) Failing after 9s
Flake check / flake-check (pull_request) Failing after 19s

This commit is contained in:
sid 2026-05-19 21:03:12 +02:00
parent afb49c7407
commit e4a429ebe6

View file

@ -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"}
'';
}; };
} }