Recently I had a very rare redirect error with a new setup:
- APP_ENABLE_HTTPS was set to true,
- APP_DEFAULT_SCHEME was undefined.
When opening the domain in browser, i.e. https://example.com the page was redirected to http://example.com and the again to https://example.com ... and so on. I could fix this with setting APP_DEFAULT_SCHEME to https. This was the first time I saw this kind of error, webserver is nginx/php-fpm (7.3)
In gyro/core/constants.inc.php line #49 is:
Config::set_value_from_constant(Config::DEFAULT_SCHEME, 'APP_DEFAULT_SCHEME', 'http');
Maybe the fallback of "http" should be set to https if ENABLE_HTTPS/APP_ENABLE_HTTPS is true?
Recently I had a very rare redirect error with a new setup:
When opening the domain in browser, i.e. https://example.com the page was redirected to http://example.com and the again to https://example.com ... and so on. I could fix this with setting APP_DEFAULT_SCHEME to https. This was the first time I saw this kind of error, webserver is nginx/php-fpm (7.3)
In gyro/core/constants.inc.php line #49 is:
Config::set_value_from_constant(Config::DEFAULT_SCHEME, 'APP_DEFAULT_SCHEME', 'http');
Maybe the fallback of "http" should be set to https if ENABLE_HTTPS/APP_ENABLE_HTTPS is true?