From df742421a873e4f07e4aea0853200c5df4755688 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Mon, 3 Sep 2018 15:47:12 +0200 Subject: [PATCH] Remove an env var --- app/uploaders/remote_downloader.rb | 2 +- config/initializers/urls.rb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/uploaders/remote_downloader.rb b/app/uploaders/remote_downloader.rb index 73aef5579..1e6dbcd66 100644 --- a/app/uploaders/remote_downloader.rb +++ b/app/uploaders/remote_downloader.rb @@ -10,6 +10,6 @@ class RemoteDownloader protected def base_url - Rails.application.secrets.fog[:base_url] + FOG_BASE_URL end end diff --git a/config/initializers/urls.rb b/config/initializers/urls.rb index aa4624896..156397c6b 100644 --- a/config/initializers/urls.rb +++ b/config/initializers/urls.rb @@ -5,6 +5,9 @@ API_GEO_URL = "https://geo.api.gouv.fr" HELPSCOUT_API_URL = 'https://api.helpscout.net/v2' PIPEDRIVE_API_URL = 'https://api.pipedrive.com/v1' +# Internal URLs +FOG_BASE_URL = 'https://storage.apientreprise.fr' + # External services URLs DOC_URL = "https://doc.demarches-simplifiees.fr" LISTE_DES_DEMARCHES_URL = [DOC_URL, "listes-des-demarches"].join("/")