Añadido para uso de Conduit

This commit is contained in:
2025-09-23 19:26:24 +02:00
parent 3d37a12d35
commit 94ad4ddbd8
3 changed files with 45 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
# --- Configuración OIDC / Authentik ---
OAUTH_CLIENT_ID=demo_client_id
OAUTH_CLIENT_SECRET=demo_client_secret
OAUTH_PROVIDER_NAME=authentik
OPENID_PROVIDER_URL=https://sso.example.org/application/o/open-web-ui/.well-known/openid-configuration
OPENID_REDIRECT_URI=https://openwebui.example.org/oauth/oidc/callback
# --- Configuración de la WebUI ---
WEBUI_URL=https://openwebui.example.org
ENABLE_OAUTH_SIGNUP=true
ENABLE_LOGIN_FORM=false
OAUTH_MERGE_ACCOUNTS_BY_EMAIL=true
@@ -0,0 +1,26 @@
# OpenWebUI
openwebui.example.org {
import tls_estricto
import seguridad_basica
import log_json_global
import healthz_path http://10.10.10.20:2960 /
@conduit_combined {
header X-App-Token TuTokenSecreto
path /api/* /ws*
}
route {
handle @conduit_combined {
reverse_proxy http://10.10.10.20:2960 {
import ip_headers
}
}
handle {
reverse_proxy http://10.10.10.20:2960 {
import ip_headers
}
}
}
}
@@ -2,9 +2,14 @@ services:
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: OpenWebUI
network_mode: bridge
restart: unless-stopped
ports:
- "2960:8080"
env_file:
- .env
volumes:
- /home/TU-USUARIO/Docker/OpenWebUI/data:/app/backend/data #Adecua correctamente tu ruta
- /opt/docker/OpenWebUI/data:/app/backend/data
networks:
default:
name: OpenWebUI_NET