diff options
Diffstat (limited to 'config/environments')
| -rw-r--r-- | config/environments/development.rb | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index 59cb9eefa..35f697d04 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -61,17 +61,20 @@ Rails.application.configure do config.reflex_api_url = "https://pprod.reflex.stif.info/ws/reflex/V1/service=getData" config.codifligne_api_url = "https://pprod.codifligne.stif.info/rest/v1/lc/getlist" - # config.chouette_authentication_settings = { - # type: "database" - # } - config.chouette_authentication_settings = { - type: "cas", - cas_server: "http://stif-portail-dev.af83.priv/sessions" - } + if Rails.env.development? && ENV['NO_VPN'] + config.chouette_authentication_settings = { + type: "database" + } + else + config.chouette_authentication_settings = { + type: "cas", + cas_server: "http://stif-portail-dev.af83.priv/sessions" + } + end config.stif_portail_api = - { - key: "Ohphie1Voo6the5hohpi", - url: "http://stif-portail-dev.af83.priv" + { + key: "Ohphie1Voo6the5hohpi", + url: "http://stif-portail-dev.af83.priv" } # Ext. apps links |
