Force set omniauth full_host for redirection

This commit is contained in:
2020-03-05 19:18:44 -05:00
parent cf464aed8d
commit 8288595b3f
4 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -46,7 +46,8 @@ Qwaiter::Application.configure do
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
#NOTE: DO NOT ACTIVATE force_ssl, this causes an infinite redirect loop and is handled by nginx
#config.force_ssl = true
# See everything in the log (default is :info)
# config.log_level = :debug
+2
View File
@@ -0,0 +1,2 @@
OmniAuth.config.full_host = Rails.env.production? ? 'https://www.mozo.bar' : 'https://www.mozo.local'