- Remove all OAuth configuration (no longer needed) - Add Authentik Proxy Outpost middleware to Traefik - Simplify environment variables (only 4 required now) - Update documentation with proxy outpost setup - Document available Authentik headers - Cleaner and simpler deployment
53 lines
1.9 KiB
Plaintext
53 lines
1.9 KiB
Plaintext
# ===========================================
|
|
# Ejemplo de variables de entorno
|
|
# ===========================================
|
|
# Copia este archivo y configura los valores según tu entorno
|
|
#
|
|
# Para desarrollo local: copia a .env
|
|
# Para Gitea Actions: configura en Settings > Actions > Variables/Secrets
|
|
|
|
# ===========================================
|
|
# REGISTRY & DEPLOYMENT
|
|
# ===========================================
|
|
# URL del registro Docker (sin http:// ni https://)
|
|
REGISTRY_URL=registry.ejemplo.com
|
|
|
|
# Nombre de la aplicación (usado para container, imagen, y labels de Traefik)
|
|
APP_NAME=mi-app
|
|
|
|
# Dominio donde se desplegará la aplicación
|
|
APP_DOMAIN=miapp.ejemplo.com
|
|
|
|
# ===========================================
|
|
# APPLICATION
|
|
# ===========================================
|
|
# URL pública de la aplicación
|
|
NUXT_PUBLIC_APP_URL=https://miapp.ejemplo.com
|
|
|
|
# ===========================================
|
|
# REGISTRY AUTHENTICATION (solo para CI/CD)
|
|
# ===========================================
|
|
# Usuario del registro Docker (SECRETO)
|
|
REGISTRY_USERNAME=mi-usuario
|
|
|
|
# Contraseña del registro Docker (SECRETO)
|
|
REGISTRY_PASSWORD=mi-password-secreto
|
|
|
|
# ===========================================
|
|
# AUTHENTIK PROXY OUTPOST
|
|
# ===========================================
|
|
# Esta plantilla usa Authentik Proxy Outpost para autenticación.
|
|
# NO se requiere configuración OAuth en la aplicación.
|
|
#
|
|
# Asegúrate de:
|
|
# 1. Tener un Proxy Outpost de Authentik configurado en Traefik
|
|
# 2. Actualizar el middleware en docker-compose.yml con el nombre correcto de tu outpost
|
|
# 3. Configurar la aplicación en Authentik para este dominio
|
|
#
|
|
# La aplicación Nuxt recibirá estos headers automáticamente:
|
|
# - X-authentik-username: nombre de usuario
|
|
# - X-authentik-email: email del usuario
|
|
# - X-authentik-name: nombre completo
|
|
# - X-authentik-groups: grupos del usuario (separados por |)
|
|
# - X-authentik-uid: ID único del usuario
|