Merge pull request 'librechat: add configFile option' (#50) from develop into release-25.11
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 5s
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 5s
Reviewed-on: #50
This commit is contained in:
commit
1ab817090f
1 changed files with 10 additions and 1 deletions
|
|
@ -180,6 +180,13 @@ in
|
||||||
ragApi = mkImageOption "ragApi" "The LibreChat RAG API Docker image (`pkgs.dockerTools.pullImage`).";
|
ragApi = mkImageOption "ragApi" "The LibreChat RAG API Docker image (`pkgs.dockerTools.pullImage`).";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
configFile = mkOption {
|
||||||
|
type = types.nullOr types.path;
|
||||||
|
default = null;
|
||||||
|
example = literalExpression "./librechat.yaml";
|
||||||
|
description = "Path to the `librechat.yaml` configuration file.";
|
||||||
|
};
|
||||||
|
|
||||||
externalUrl = mkOption {
|
externalUrl = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
default = null;
|
default = null;
|
||||||
|
|
@ -335,7 +342,9 @@ in
|
||||||
"librechat_images:/app/client/public/images:rw"
|
"librechat_images:/app/client/public/images:rw"
|
||||||
"librechat_uploads:/app/uploads:rw"
|
"librechat_uploads:/app/uploads:rw"
|
||||||
"librechat_logs:/app/logs:rw"
|
"librechat_logs:/app/logs:rw"
|
||||||
];
|
]
|
||||||
|
++ optional (cfg.configFile != null) "${cfg.configFile}:/app/librechat.yaml:ro";
|
||||||
|
|
||||||
ports = [
|
ports = [
|
||||||
"0.0.0.0:${toString cfg.port}:${toString cfg.port}/tcp"
|
"0.0.0.0:${toString cfg.port}:${toString cfg.port}/tcp"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue