Skip to content

Commit 7dc92a8

Browse files
authored
Update miso-chat to openclaw-chat v0.1.0 (#6052)
* Update miso-chat to openclaw-chat v0.1.0 * Fix env format and hostname to miso-chat
1 parent 0760f72 commit 7dc92a8

File tree

5 files changed

+51
-5
lines changed

5 files changed

+51
-5
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
# yaml-language-server: $schema=https://kube-schemas.pages.dev/external-secrets.io/externalsecret_v1.json
3+
apiVersion: external-secrets.io/v1
4+
kind: ExternalSecret
5+
metadata:
6+
name: &name miso-chat
7+
spec:
8+
secretStoreRef:
9+
kind: ClusterSecretStore
10+
name: onepassword
11+
target:
12+
name: *name
13+
template:
14+
data:
15+
## OAUTH
16+
OIDC_ENABLED: true
17+
OIDC_DISPLAY_NAME: Authentik
18+
OIDC_ISSUER: https://sso.jory.dev/
19+
OIDC_CLIENT_ID: "{{ .MISO_CHAT_CLIENT_ID }}"
20+
OIDC_CLIENT_SECRET: "{{ .MISO_CHAT_CLIENT_SECRET }}"
21+
OIDC_CALLBACK_URL: https://miso-chat.jory.dev/auth/oidc/callback
22+
## MISO-CHAT
23+
SESSION_SECRET: "{{ .MISO_SESSION_SECRET }}"
24+
## OPENCLAW
25+
GATEWAY_URL: wss://openclaw.llm:18789
26+
GATEWAY_AUTH_TOKEN: "{{ .OPENCLAW_GATEWAY_TOKEN }}"
27+
dataFrom:
28+
- extract:
29+
key: miso-chat
30+
- extract:
31+
key: openclaw

kubernetes/apps/base/llm/miso-chat/helmrelease.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,21 @@ spec:
1717
app:
1818
image:
1919
repository: ghcr.io/joryirving/miso-chat
20-
tag: 1.0.0@sha256:0411ef6492ab8140ab922bd309c1ec8bd27bd298072e0e1b5765a147ccde835b
20+
tag: 0.1.1@sha256:a8ab5bdb053f577d800ff762ff1ac57977a76814a99399bd5d9a24c56cc4be3e
21+
envFrom:
22+
- secretRef:
23+
name: "{{ .Release.Name }}"
2124
resources:
2225
requests:
2326
cpu: 10m
24-
memory: 32Mi
25-
limits:
2627
memory: 64Mi
28+
limits:
29+
memory: 128Mi
2730
service:
2831
app:
2932
ports:
3033
http:
31-
port: 80
34+
port: 3000
3235
route:
3336
app:
3437
hostnames: ["miso-chat.jory.dev"]

kubernetes/apps/base/llm/miso-chat/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
55
resources:
6+
- ./externalsecret.yaml
67
- ./helmrelease.yaml

terraform/authentik/applications.tofu

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ locals {
77
"Grafana",
88
"Headlamp",
99
"Kyoo",
10+
"Miso",
1011
"Open-WebUI",
1112
"Paperless",
1213
"Portainer",
@@ -88,10 +89,19 @@ locals {
8889
launch_url = "https://kyoo.${var.CLUSTER_DOMAIN}/api/auth/login/authentik?redirectUrl=https://kyoo.${var.CLUSTER_DOMAIN}/login/callback"
8990
property_mappings = local.default_property_mappings
9091
},
92+
Miso = {
93+
client_id = module.onepassword_application["Miso-Chat"].fields["MISO_CHAT_CLIENT_ID"]
94+
client_secret = module.onepassword_application["Miso-Chat"].fields["MISO_CHAT_CLIENT_SECRET"]
95+
group = "ai"
96+
icon_url = "https://avatars.githubusercontent.com/u/263493777?v=4"
97+
redirect_uri = "https://miso-chat.${var.CLUSTER_DOMAIN}/auth/oidc/callback"
98+
launch_url = "https://miso-chat.${var.CLUSTER_DOMAIN}/auth/oidc"
99+
property_mappings = local.default_property_mappings
100+
},
91101
Open-WebUI = {
92102
client_id = module.onepassword_application["Open-WebUI"].fields["OPEN_WEBUI_CLIENT_ID"]
93103
client_secret = module.onepassword_application["Open-WebUI"].fields["OPEN_WEBUI_CLIENT_SECRET"]
94-
group = "home"
104+
group = "ai"
95105
icon_url = "https://raw.githubusercontent.com/open-webui/open-webui/refs/heads/main/static/favicon.png"
96106
redirect_uri = "https://chat.${var.CLUSTER_DOMAIN}/oauth/oidc/callback"
97107
launch_url = "https://chat.${var.CLUSTER_DOMAIN}/auth"

terraform/authentik/directory.tofu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
locals {
22
authentik_groups = {
3+
ai = { name = "AI" }
34
downloads = { name = "Downloads" }
45
games = { name = "Games" }
56
grafana_admins = { name = "Grafana Admins" }

0 commit comments

Comments
 (0)