Reverse proxy installation - no ssl
I want to install loomio in a reverse proxy configuration.
Here my proxy is an apache who takes https connections and send them through http to loomio
I don't want to use https betwenn the apache and the loomio.
The issue is the connection seems to be redirected by loomio, and i don't know why.
I've set FORCE_SSL=0
in my env
file
part of the docker loomio app log :
Started GET "/" for 109.200.4x.xxx at 2019-07-22 17:53:57 +0000
Processing by RootController#index as HTML
Redirected to https://my.loomio.url
Filter chain halted as #Proc:0x000055bc7959d608@/usr/local/bundle/gems/actionpack-5.2.3/lib/action_controller/metal/force_ssl.rb:67 rendered or redirected
Completed 301 Moved Permanently in 3ms
source=rack-timeout id=05d1d9f7-e1f5-4120-b81b-798dd1c6b112 timeout=15000ms service=10ms state=completed
source=rack-timeout id=e7ed7ac6-dbe2-47ba-b6e3-524a02594b03 timeout=15000ms state=ready
Anthony Oblin Tue 23 Jul 2019 7:27AM
ahah thank you! indeed it solves my issue, sorry, first time i have to deal with Ruby, didn't know that
Robert Guthrie · Mon 22 Jul 2019 11:45PM
Hi @Anthony Oblin - to ruby, "0" is a truthy value, just delete the FORCE_SSL line entirely