mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-08 19:44:41 +02:00
feat(apps): Open WebUI (OIDC) + n8n sur le domaine public HTTPS (#91)
- open-webui : SSO OIDC Authentik (app openwebui) + route openwebui.funklab.online. Secret vault_openwebui_oauth_client_secret (= secret k8s ai/open-webui-oauth). Nouveaux comptes en rôle 'user'. - n8n : route n8n.funklab.online (garde son propre login ; route interne n8n.lab.local conservée pour le webhook AlertManager) Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
c0cbd74a9c
commit
5e70e72719
4 changed files with 213 additions and 144 deletions
|
|
@ -49,6 +49,29 @@ spec:
|
|||
value: "Funk AI"
|
||||
- name: DEFAULT_LOCALE
|
||||
value: "fr-FR"
|
||||
# --- SSO OIDC → Authentik (app « openwebui ») ---
|
||||
# Découverte server-side + navigateur sur l'URL publique (le pod la joint
|
||||
# via hairpin). Redirect URI Authentik : .../oauth/oidc/callback
|
||||
- name: WEBUI_URL
|
||||
value: "https://openwebui.funklab.online"
|
||||
- name: ENABLE_OAUTH_SIGNUP
|
||||
value: "true"
|
||||
- name: OAUTH_PROVIDER_NAME
|
||||
value: "Authentik"
|
||||
- name: OPENID_PROVIDER_URL
|
||||
value: "https://auth.funklab.online/application/o/openwebui/.well-known/openid-configuration"
|
||||
- name: OAUTH_CLIENT_ID
|
||||
value: "openwebui"
|
||||
- name: OAUTH_CLIENT_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: open-webui-oauth
|
||||
key: client-secret
|
||||
- name: OAUTH_SCOPES
|
||||
value: "openid email profile"
|
||||
# Nouveaux comptes OIDC directement utilisables (sinon 'pending' = à valider)
|
||||
- name: DEFAULT_USER_ROLE
|
||||
value: "user"
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /app/backend/data
|
||||
|
|
|
|||
18
k8s/apps/open-webui/ingress-public.yaml
Normal file
18
k8s/apps/open-webui/ingress-public.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Accès public HTTPS — openwebui.funklab.online (cert Let's Encrypt auto).
|
||||
# Route interne openwebui.lab.local conservée (non destructif).
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: open-webui-public
|
||||
namespace: ai
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`openwebui.funklab.online`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: open-webui
|
||||
port: 8080
|
||||
tls:
|
||||
certResolver: letsencrypt
|
||||
Loading…
Add table
Add a link
Reference in a new issue