rename datagouv env var
This commit is contained in:
parent
906dd4b509
commit
e3206f3eec
4 changed files with 10 additions and 10 deletions
|
@ -34,8 +34,8 @@ class APIDatagouv::API
|
|||
def datagouv_upload_url
|
||||
[
|
||||
datagouv_secret[:api_url],
|
||||
"/datasets/", datagouv_secret[:ds_demarches_publiques_dataset],
|
||||
"/resources/", datagouv_secret[:ds_demarches_publiques_resource],
|
||||
"/datasets/", datagouv_secret[:descriptif_demarches_dataset],
|
||||
"/resources/", datagouv_secret[:descriptif_demarches_resource],
|
||||
"/upload/"
|
||||
].join
|
||||
end
|
||||
|
|
|
@ -153,9 +153,3 @@ 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"
|
||||
|
|
|
@ -142,3 +142,9 @@ VITE_LEGACY=""
|
|||
NEW_MAX_DUREE_CONSERVATION=12
|
||||
#
|
||||
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"
|
||||
|
|
|
@ -81,8 +81,8 @@ defaults: &defaults
|
|||
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'] %>
|
||||
descriptif_demarches_dataset: <%= ENV['DATAGOUV_DESCRIPTIF_DEMARCHES_DATASET'] %>
|
||||
descriptif_demarches_resource: <%= ENV['DATAGOUV_DESCRIPTIF_DEMARCHES_RESOURCE'] %>
|
||||
|
||||
|
||||
development:
|
||||
|
|
Loading…
Reference in a new issue