diff --git a/.gitea/workflows/deploy-prod.yml b/.gitea/workflows/deploy-prod.yml index a0a138a..a5659ff 100644 --- a/.gitea/workflows/deploy-prod.yml +++ b/.gitea/workflows/deploy-prod.yml @@ -22,7 +22,7 @@ jobs: - name: Health check run: | sleep 30 - STATUS=$(curl -s -o /dev/null -w "%{http_code}" https://veille.santinova-soft.org) + STATUS=$(curl -s -o /dev/null -w "%{http_code}" https://veille-itinova.santinova-soft.org) echo "HTTP status: $STATUS" if [ "$STATUS" != "200" ]; then echo "❌ Health check failed (HTTP $STATUS)" diff --git a/.gitea/workflows/deploy-recette.yml b/.gitea/workflows/deploy-recette.yml index 2dcb37e..d55aff8 100644 --- a/.gitea/workflows/deploy-recette.yml +++ b/.gitea/workflows/deploy-recette.yml @@ -22,7 +22,7 @@ jobs: - name: Health check run: | sleep 30 - STATUS=$(curl -s -o /dev/null -w "%{http_code}" https://veille.recette.santinova-soft.org) + STATUS=$(curl -s -o /dev/null -w "%{http_code}" https://veille-itinova.recette.santinova-soft.org) echo "HTTP status: $STATUS" if [ "$STATUS" != "200" ]; then echo "❌ Health check failed (HTTP $STATUS)" diff --git a/app.json b/app.json index b351803..3eb4fc5 100644 --- a/app.json +++ b/app.json @@ -6,8 +6,8 @@ "activeConfigurationPath": "/api/ai/active-configuration" }, "urls": { - "recette": "https://veille.recette.santinova-soft.org", - "prod": "https://veille.santinova-soft.org" + "recette": "https://veille-itinova.recette.santinova-soft.org", + "prod": "https://veille-itinova.santinova-soft.org" }, "containerName": "veille-reglementaire-recette", "image": "images/veille-reglementaire.png", diff --git a/docker-compose.recette.yml b/docker-compose.recette.yml index bda9f15..48be604 100644 --- a/docker-compose.recette.yml +++ b/docker-compose.recette.yml @@ -25,8 +25,8 @@ services: - AZURE_AD_CLIENT_ID=f496da82-e18f-4567-bf05-8551ae6669b2 - AZURE_AD_CLIENT_SECRET=d.T8Q~RR9iobI9bin2hqecoBWDjvyD7I11U5QcPR - AZURE_AD_TENANT_ID=487d0a81-de35-44ce-8847-03bb74ec553e - - AZURE_AD_REDIRECT_URI=https://veille.recette.santinova-soft.org/api/auth/azure/callback - - REFERENTIEL_IA_BASE_URL=${REFERENTIEL_IA_BASE_URL:?REFERENTIEL_IA_BASE_URL requis} + - AZURE_AD_REDIRECT_URI=https://veille-itinova.recette.santinova-soft.org/api/auth/azure/callback + - REFERENTIEL_IA_BASE_URL=https://referentiel-ia-santinova.recette.santinova-soft.org - REFERENTIEL_IA_TOKEN=${REFERENTIEL_IA_TOKEN:?REFERENTIEL_IA_TOKEN requis} - REFERENTIEL_IA_APP_SLUG=${REFERENTIEL_IA_APP_SLUG:?REFERENTIEL_IA_APP_SLUG requis} depends_on: @@ -38,7 +38,7 @@ services: - "traefik.enable=true" - "traefik.docker.network=web" - "traefik.http.routers.veille-recette-secure.entrypoints=websecure" - - "traefik.http.routers.veille-recette-secure.rule=Host(`veille.recette.santinova-soft.org`)" + - "traefik.http.routers.veille-recette-secure.rule=Host(`veille.recette.santinova-soft.org`) || Host(`veille-itinova.recette.santinova-soft.org`)" - "traefik.http.routers.veille-recette-secure.service=veille-recette-svc" - "traefik.http.routers.veille-recette-secure.tls=true" - "traefik.http.routers.veille-recette-secure.tls.certresolver=letsencrypt" diff --git a/server/_core/aiReferenceClient.test.ts b/server/_core/aiReferenceClient.test.ts index 5c8251d..673ea05 100644 --- a/server/_core/aiReferenceClient.test.ts +++ b/server/_core/aiReferenceClient.test.ts @@ -15,7 +15,7 @@ const recommendation = { describe("client Référentiel IA", () => { it("résout le moteur du Référentiel puis transmet son slug exact", async () => { - ENV.aiReferentielUrl = "https://referentiel-ia.recette.santinova-soft.org"; + ENV.aiReferentielUrl = "https://referentiel-ia-santinova.recette.santinova-soft.org"; ENV.aiReferentielToken = "token-de-test"; ENV.aiReferentielAppSlug = "veille-reglementaire"; const fetcher = vi.fn() @@ -42,7 +42,7 @@ describe("client Référentiel IA", () => { }); it("refuse une décision rattachée à une autre application", async () => { - ENV.aiReferentielUrl = "https://referentiel-ia.recette.santinova-soft.org"; + ENV.aiReferentielUrl = "https://referentiel-ia-santinova.recette.santinova-soft.org"; ENV.aiReferentielToken = "token-de-test"; ENV.aiReferentielAppSlug = "veille-reglementaire"; const fetcher = vi.fn().mockResolvedValue(new Response(JSON.stringify({ ...recommendation, application: { slug: "autre-app" } }), { status: 200 })); diff --git a/server/ai-reference.test.ts b/server/ai-reference.test.ts index 95279ae..f3230e8 100644 --- a/server/ai-reference.test.ts +++ b/server/ai-reference.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it, vi } from "vitest"; import { getAiEngineStatus } from "./ai-reference"; -const config = { url: "https://referentiel-ia.recette.santinova-soft.org", token: "jeton-test", applicationSlug: "veille-reglementaire" }; +const config = { url: "https://referentiel-ia-santinova.recette.santinova-soft.org", token: "jeton-test", applicationSlug: "veille-reglementaire" }; const decision = { application: { slug: "veille-reglementaire" }, decision: { selected: { origin: "manual", engine: { name: "Manus Forge", provider: "Manus", slug: "manus-forge" }, connection: { configured: true, model: "gemini-2.5-flash", testStatus: "success" } } } }; describe("statut Référentiel IA", () => {