OAuth2 callback URL is now configurable
This commit is contained in:
parent
114ea469ee
commit
afa90e3927
4 changed files with 13 additions and 3 deletions
|
|
@ -83,4 +83,7 @@ Rails.application.configure do
|
|||
|
||||
# URL to fetch reviews from the Ubuntu JSON API
|
||||
# config.ubuntu_reviews_api_url = 'https://reviews.ubuntu.com/reviews/api/1.0/reviews/filter/en/any/any/any/%s'
|
||||
|
||||
# Needed (at least) for devise.rb to determine the oauth2 callback URL
|
||||
config.base_url = ENV['DEBSHOTS_BASE_URL'] || 'http://localhost:3000'
|
||||
end
|
||||
|
|
|
|||
|
|
@ -126,4 +126,7 @@ Rails.application.configure do
|
|||
# Any action dealing with authentication should redirect to HTTPS
|
||||
# Disabled because it will redirect incorrectly behind a proxy.
|
||||
# config.to_prepare { Devise::SessionsController.force_ssl }
|
||||
|
||||
# Needed (at least) for devise.rb to determine the oauth2 callback URL
|
||||
config.base_url = ENV['DEBSHOTS_BASE_URL'] || 'http://localhost:3000'
|
||||
end
|
||||
|
|
|
|||
|
|
@ -57,4 +57,7 @@ Rails.application.configure do
|
|||
|
||||
# Raises error for missing translations
|
||||
# config.action_view.raise_on_missing_translations = true
|
||||
|
||||
# Needed (at least) for devise.rb to determine the oauth2 callback URL
|
||||
config.base_url = ENV['DEBSHOTS_BASE_URL'] || 'http://localhost:3000'
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue