-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add libre chat and cilium in install process
- Loading branch information
1 parent
c34a2f8
commit c47387c
Showing
14 changed files
with
351 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
|
||
|
||
resource "random_string" "creds_key" { | ||
length = 64 | ||
special = false | ||
} | ||
|
||
resource "random_string" "creds_iv" { | ||
length = 32 | ||
special = false | ||
} | ||
|
||
resource "random_string" "jwt_secret" { | ||
length = 64 | ||
special = false | ||
} | ||
|
||
resource "random_string" "jwt_refresh_secret" { | ||
length = 64 | ||
special = false | ||
} | ||
|
||
resource "kubernetes_secret" "librechat" { | ||
metadata { | ||
name = "librechat" | ||
namespace = "default" | ||
} | ||
|
||
data = { | ||
CREDS_KEY = "${random_string.creds_key.result}" | ||
CREDS_IV = "${random_string.creds_iv.result}" | ||
MONGO_URI = "${helm_release.mongodb.output.mongodb_uri}" | ||
JWT_SECRET = "${random_string.jwt_secret.result}" | ||
JWT_REFRESH_SECRET = "${random_string.jwt_refresh_secret.result}" | ||
} | ||
} | ||
|
||
resource "helm_release" "librechat" { | ||
name = "librechat" | ||
chart = "<path-to-librechat-helm-chart>" # Path to the LibreChat chart. | ||
namespace = "default" | ||
|
||
|
||
values = [ | ||
yamlencode({ | ||
config = { | ||
env_secrets = { | ||
secret_ref = kubernetes_secret.librechat.metadata[0].name | ||
} | ||
} | ||
|
||
env = { | ||
ALLOW_EMAIL_LOGIN = true | ||
ALLOW_REGISTRATION = true | ||
ALLOW_SOCIAL_LOGIN = false | ||
ALLOW_SOCIAL_REGISTRATION = false | ||
CUSTOM_FOOTER = "Orga-404 librechat" | ||
DEBUG_CONSOLE = true | ||
DEBUG_LOGGING = true | ||
DEBUG_OPENAI = true | ||
DEBUG_PLUGINS = true | ||
DOMAIN_CLIENT = "" | ||
DOMAIN_SERVER = "" | ||
ENDPOINTS = "openAI,azureOpenAI,bingAI,chatGPTBrowser,google,gptPlugins,anthropic" | ||
MONGO_URI = "mongodb://${var.mongo_user}:${var.mongo_password}@${var.mongo_host}:${var.mongo_port}/${var.mongo_database}" | ||
} | ||
}) | ||
] | ||
} | ||
|
Oops, something went wrong.