From e523c2631e14854d49503cb4892dd75ad747908c Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Fri, 15 Feb 2019 01:08:43 +0100 Subject: [PATCH] Make the device ichain base url configurable --- config/initializers/devise.rb | 2 +- dotenv.example | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index f10f4349..a533ffe2 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -243,7 +243,7 @@ Devise.setup do |config| # config.omniauth_path_prefix = "/my_engine/users/auth" # You will always need to set this parameter. - config.ichain_base_url = "https://events.opensuse.org" + config.ichain_base_url = ENV.fetch('OSEM_ICHAIN_BASE_URL', 'https://events.opensuse.org') # Paths (relative to ichain_base_url) used by your proxy # config.ichain_login_path = "ICSLogin/" diff --git a/dotenv.example b/dotenv.example index e58a5f88..ed042bc2 100644 --- a/dotenv.example +++ b/dotenv.example @@ -95,6 +95,7 @@ # Enable the usage of the devise ichain plugin # OSEM_ICHAIN_ENABLED=false +# OSEM_ICHAIN_BASE_URL=https://example.com # ReCAPTCHA keys # RECAPTCHA_SITE_KEY=1234