From 7887eb66eea4a35cf9e6c0418e5247269b74a1ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Reuiller?= Date: Tue, 17 Dec 2024 20:00:27 +0100 Subject: [PATCH] update settings --- config/settings/base.py | 2 +- env.default.sh | 4 ++++ env.docker_default.local | 12 +++++------- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/config/settings/base.py b/config/settings/base.py index 792dac176..159430bac 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -507,7 +507,7 @@ # API Entreprise. # https://dashboard.entreprise.api.gouv.fr/login (login is done through auth.api.gouv.fr) # https://doc.entreprise.api.gouv.fr/ -API_ENTREPRISE_BASE_URL = "https://entreprise.api.gouv.fr/v2" +API_ENTREPRISE_BASE_URL = env.str("API_ENTREPRISE_BASE_URL", "https://entreprise.api.gouv.fr/v3") API_ENTREPRISE_CONTEXT = "emplois.inclusion.beta.gouv.fr" API_ENTREPRISE_RECIPIENT = env.str("API_ENTREPRISE_RECIPIENT", "") API_ENTREPRISE_TOKEN = env.str("API_ENTREPRISE_TOKEN", "") diff --git a/env.default.sh b/env.default.sh index 4d6c1cf1b..7caf4e66d 100644 --- a/env.default.sh +++ b/env.default.sh @@ -29,3 +29,7 @@ export OPENAI_API_BASE="" export OPENAI_API_KEY="" export OPENAI_MODEL="" +# API Entreprise / see https://entreprise.api.gouv.fr/developpeurs#kit-de-mise-en-production +export API_ENTREPRISE_RECIPIENT="" +export API_ENTREPRISE_BASE_URL="https://staging.entreprise.api.gouv.fr/v3" +export API_ENTREPRISE_TOKEN="" diff --git a/env.docker_default.local b/env.docker_default.local index a1d426913..22115c072 100755 --- a/env.docker_default.local +++ b/env.docker_default.local @@ -52,12 +52,10 @@ OPENAI_API_BASE= OPENAI_API_BASE= OPENAI_MODEL= -# ELASTICSEARCH -ELASTICSEARCH_HOST= -ELASTICSEARCH_USERNAME= -ELASTICSEARCH_PASSWORD= -ELASTICSEARCH_INDEX_SIAES= -ELASTICSEARCH_MIN_SCORE=0.9 - # DATACUBE API DATACUBE_API_TOKEN= + +# API Entreprise / see https://entreprise.api.gouv.fr/developpeurs#kit-de-mise-en-production +API_ENTREPRISE_RECIPIENT= +API_ENTREPRISE_BASE_URL="https://staging.entreprise.api.gouv.fr/v3" +API_ENTREPRISE_TOKEN=