how do i easily solve the issue when you turn on FORCE HTTPS and then you can not login or reach xibo again?..I did reverse proxy on debian 9, nginx and certbot let’s encrypt all working fine with redirect http to https…as soon as i turn on FORCE HTTPS in the xibo settings, everything collapses.
why and how can this be fixed? without having to delete shared folder and starting over again
Xibo looks at each incoming connection and if it detects that it is using http it redirects to https. If https was working before you enabled it, then you should be fine.
Solution 1 is to make HTTPS work
Solution 2 is to get a command line to the database and set the setting back again.
UPDATE `setting` SET value = 0 WHERE setting = 'FORCE_HTTPS';
It sounds like you need to make sure your reverse proxy is sending the correct HTTP_X_FORWARDED_PROTO headers into the Docker container.
No definitely not - the requests are arriving at the right place, but Xibo in the container doesn’t know that the request originated from HTTPS because the proxy isn’t setting the correct header.
so i started a fresh install of debain…set up ssl and was able to score A+ on the SSL checker website…using a revers proxy…i got A+ with www and without www, but as soon as i turn on FORCE HTTPS in xibo, site/cms cannot be reached anymore…i have tried every changes to the proxy_pass directive…nothing…I have been trying to find answers to this for the past 4 days and still not getting any where…I can run xibo and not use FORCE HTTPS but i really wanted to understand the error and how to rectify it. I had same issues when i was using xibo 1.7 on a shared hosting…everytime i turned on FORCE HTTP, i had a problem and i had to do something to make it work with FORCE HTTPS on then later, I run into the same issue and i turn of FORCE HTTPS and then xibo starts to work…i forgot what i di…nothing to do with proxy.
who here is able to use xibo with FORCE HTTPS ON using debian 9 or ubuntu?
When FORCE HTTPS ON is selected in the CMS, on every request we have the PHP code check that the HTTP_SCHEME is in HTTP_X_FORWARDED_PROTO is https and if it is not, we issue a redirect to https.
What is happening for you @aponkye is that your https:// URL does not contain https because the proxy is not setting that correctly.
You could put a really simple test file in /custom/userscripts called test.php containing:
what can I do without daddy Daniel…so the whole time I excluded proxy_set_header X-Forwarded-Proto $scheme;…i reinstalled xibo cms almost 15 times and each time, I enabled FORCE HTTPS in cms settings and site broke down…shame on me!