From f7226ac6255cb880bfe793d474c2d7381e6321c4 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Thu, 14 Jul 2022 11:19:37 +0200 Subject: [PATCH] add datagouv secrets --- config/env.example | 6 ++++++ config/secrets.yml | 11 ++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/config/env.example b/config/env.example index b3090af82..b12f3c267 100644 --- a/config/env.example +++ b/config/env.example @@ -153,3 +153,9 @@ CLAMAV_ENABLED="disabled" # Siret number used for API Entreprise, by default we use SIRET from dinum API_ENTREPRISE_DEFAULT_SIRET="put_your_own_siret" + +# Publish to datagouv +DATAGOUV_API_KEY="thisisasecret" +DATAGOUV_API_URL="https://www.data.gouv.fr/api/1" +DATAGOUV_DEMARCHES_PUBLIQUES_DATASET="datasetid" +DATAGOUV_DEMARCHES_PUBLIQUES_RESOURCE="resourceid" diff --git a/config/secrets.yml b/config/secrets.yml index 35a8a5c42..c7d74fb20 100644 --- a/config/secrets.yml +++ b/config/secrets.yml @@ -78,7 +78,11 @@ defaults: &defaults api_geo_url: <%= ENV['API_GEO_URL'] %> api_adresse_url: <%= ENV['API_ADRESSE_URL'] %> api_education_url: <%= ENV['API_EDUCATION_URL'] %> - + datagouv: + api_key: <%= ENV['DATAGOUV_API_KEY'] %> + api_url: <%= ENV['DATAGOUV_API_URL'] %> + ds_demarches_publiques_dataset: <%= ENV['DATAGOUV_DEMARCHES_PUBLIQUES_DATASET'] %> + ds_demarches_publiques_resource: <%= ENV['DATAGOUV_DEMARCHES_PUBLIQUES_RESOURCE'] %> development: @@ -109,6 +113,11 @@ test: userpwd: 'fake:fake' autocomplete: api_geo_url: /test/api_geo + datagouv: + api_key: "clesecrete" + api_url: "https://www.data.gouv.fr/api/1" + descriptif_demarches_dataset: "ethopundataset" + descriptif_demarches_resource: "etbimuneressource" # Do not keep production secrets in the repository, # instead read values from the environment.