Cambiar variables GITEA_* a GIT_* para evitar conflicto con reservadas
Las variables que empiezan con GITEA_ o GITHUB_ están prohibidas en Gitea Actions por el patrón de validación. Renombradas a: - GITEA_URL -> GIT_URL - GITEA_DOMAIN -> GIT_DOMAIN - GITEA_TOKEN -> GIT_TOKEN Actualizados: index.ts, docker-compose.yml, workflow, .env.example
This commit is contained in:
@@ -60,7 +60,8 @@ REGISTRY_PASSWORD=mi-password-secreto
|
|||||||
# MCP SERVERS
|
# MCP SERVERS
|
||||||
# ===========================================
|
# ===========================================
|
||||||
# Servidor MCP para Gitea API
|
# Servidor MCP para Gitea API
|
||||||
# El servidor estará disponible en: GITEA_DOMAIN/mcp (sin autenticación)
|
# El servidor estará disponible en: GIT_DOMAIN/mcp (sin autenticación)
|
||||||
GITEA_URL=https://gitea.ejemplo.com
|
# Nota: No usar GITEA_* o GITHUB_* (reservados por Gitea)
|
||||||
GITEA_DOMAIN=gitea.ejemplo.com
|
GIT_URL=https://gitea.ejemplo.com
|
||||||
GITEA_TOKEN=token-de-gitea-aqui
|
GIT_DOMAIN=gitea.ejemplo.com
|
||||||
|
GIT_TOKEN=token-de-gitea-aqui
|
||||||
|
|||||||
@@ -54,9 +54,9 @@ jobs:
|
|||||||
APP_DOMAIN: ${{ vars.APP_DOMAIN }}
|
APP_DOMAIN: ${{ vars.APP_DOMAIN }}
|
||||||
NUXT_PUBLIC_APP_URL: ${{ vars.NUXT_PUBLIC_APP_URL }}
|
NUXT_PUBLIC_APP_URL: ${{ vars.NUXT_PUBLIC_APP_URL }}
|
||||||
# Variables para MCP Gitea Server
|
# Variables para MCP Gitea Server
|
||||||
GITEA_URL: ${{ vars.GITEA_URL }}
|
GIT_URL: ${{ vars.GIT_URL }}
|
||||||
GITEA_DOMAIN: ${{ vars.GITEA_DOMAIN }}
|
GIT_DOMAIN: ${{ vars.GIT_DOMAIN }}
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
|
|||||||
@@ -86,8 +86,8 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- PORT=3000
|
- PORT=3000
|
||||||
- GITEA_URL=${GITEA_URL}
|
- GIT_URL=${GIT_URL}
|
||||||
- GITEA_TOKEN=${GITEA_TOKEN}
|
- GIT_TOKEN=${GIT_TOKEN}
|
||||||
networks:
|
networks:
|
||||||
- principal
|
- principal
|
||||||
- traefik-network
|
- traefik-network
|
||||||
@@ -100,7 +100,7 @@ services:
|
|||||||
- "traefik.http.services.${APP_NAME}-mcp-gitea.loadbalancer.server.port=3000"
|
- "traefik.http.services.${APP_NAME}-mcp-gitea.loadbalancer.server.port=3000"
|
||||||
|
|
||||||
# Router sin autenticación para /mcp en gitea.nucleoriofrio.com
|
# Router sin autenticación para /mcp en gitea.nucleoriofrio.com
|
||||||
- "traefik.http.routers.${APP_NAME}-mcp-gitea.rule=Host(`${GITEA_DOMAIN}`) && PathPrefix(`/mcp`)"
|
- "traefik.http.routers.${APP_NAME}-mcp-gitea.rule=Host(`${GIT_DOMAIN}`) && PathPrefix(`/mcp`)"
|
||||||
- "traefik.http.routers.${APP_NAME}-mcp-gitea.entrypoints=websecure"
|
- "traefik.http.routers.${APP_NAME}-mcp-gitea.entrypoints=websecure"
|
||||||
- "traefik.http.routers.${APP_NAME}-mcp-gitea.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.${APP_NAME}-mcp-gitea.tls.certresolver=letsencrypt"
|
||||||
- "traefik.http.routers.${APP_NAME}-mcp-gitea.priority=200"
|
- "traefik.http.routers.${APP_NAME}-mcp-gitea.priority=200"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import express from 'express';
|
|||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
// Configuración de Gitea
|
// Configuración de Gitea
|
||||||
const GITEA_URL = process.env.GITEA_URL || 'https://gitea.nucleoriofrio.com';
|
const GITEA_URL = process.env.GIT_URL || 'https://gitea.nucleoriofrio.com';
|
||||||
const GITEA_TOKEN = process.env.GITEA_TOKEN || '';
|
const GITEA_TOKEN = process.env.GIT_TOKEN || '';
|
||||||
const PORT = parseInt(process.env.PORT || '3000');
|
const PORT = parseInt(process.env.PORT || '3000');
|
||||||
|
|
||||||
// Cliente HTTP para Gitea API
|
// Cliente HTTP para Gitea API
|
||||||
|
|||||||
Reference in New Issue
Block a user