rename datagouv env var

This commit is contained in:
Christophe Robillard 2022-07-21 16:36:58 +02:00
parent 906dd4b509
commit e3206f3eec
4 changed files with 10 additions and 10 deletions

View file

@ -34,8 +34,8 @@ class APIDatagouv::API
def datagouv_upload_url def datagouv_upload_url
[ [
datagouv_secret[:api_url], datagouv_secret[:api_url],
"/datasets/", datagouv_secret[:ds_demarches_publiques_dataset], "/datasets/", datagouv_secret[:descriptif_demarches_dataset],
"/resources/", datagouv_secret[:ds_demarches_publiques_resource], "/resources/", datagouv_secret[:descriptif_demarches_resource],
"/upload/" "/upload/"
].join ].join
end end

View file

@ -153,9 +153,3 @@ CLAMAV_ENABLED="disabled"
# Siret number used for API Entreprise, by default we use SIRET from dinum # Siret number used for API Entreprise, by default we use SIRET from dinum
API_ENTREPRISE_DEFAULT_SIRET="put_your_own_siret" 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"

View file

@ -142,3 +142,9 @@ VITE_LEGACY=""
NEW_MAX_DUREE_CONSERVATION=12 NEW_MAX_DUREE_CONSERVATION=12
# #
OPENDATA_ENABLED="enabled" OPENDATA_ENABLED="enabled"
# Publish to datagouv
DATAGOUV_API_KEY="thisisasecret"
DATAGOUV_API_URL="https://www.data.gouv.fr/api/1"
DATAGOUV_DESCRIPTIF_DEMARCHES_DATASET="datasetid"
DATAGOUV_DESCRIPTIF_DEMARCHES_RESOURCE="resourceid"

View file

@ -81,8 +81,8 @@ defaults: &defaults
datagouv: datagouv:
api_key: <%= ENV['DATAGOUV_API_KEY'] %> api_key: <%= ENV['DATAGOUV_API_KEY'] %>
api_url: <%= ENV['DATAGOUV_API_URL'] %> api_url: <%= ENV['DATAGOUV_API_URL'] %>
ds_demarches_publiques_dataset: <%= ENV['DATAGOUV_DEMARCHES_PUBLIQUES_DATASET'] %> descriptif_demarches_dataset: <%= ENV['DATAGOUV_DESCRIPTIF_DEMARCHES_DATASET'] %>
ds_demarches_publiques_resource: <%= ENV['DATAGOUV_DEMARCHES_PUBLIQUES_RESOURCE'] %> descriptif_demarches_resource: <%= ENV['DATAGOUV_DESCRIPTIF_DEMARCHES_RESOURCE'] %>
development: development: