undocumented config variable?
Posted: Thu Oct 28, 2021 3:40 am
Long story short: $config['ssl_uploads_url'] is not documented as far as I can tell. But maybe that's because you should not set it?
--
I have a website that is installed on multiple servers, only difference is the config.php file. This is how I test updates, etc. The introduction of SmartImage caused some issues on all my servers as src="/uploads.." is not supperted. also described here viewtopic.php?f=7&t=82989
I then started using {uploads_url} as suggested by Digi. Today I realised that this does not work on my test server, as SmartImage refuses to output anything with a self-signed certificate. I then set $config['uploads_url'] as http://... but that still failed.
I finally found the method in class.cms_config which checks how the request is made, and if the request comes via https, it returns ssl_uploads_url.
So, by setting
--
I have a website that is installed on multiple servers, only difference is the config.php file. This is how I test updates, etc. The introduction of SmartImage caused some issues on all my servers as src="/uploads.." is not supperted. also described here viewtopic.php?f=7&t=82989
I then started using {uploads_url} as suggested by Digi. Today I realised that this does not work on my test server, as SmartImage refuses to output anything with a self-signed certificate. I then set $config['uploads_url'] as http://... but that still failed.
I finally found the method in class.cms_config which checks how the request is made, and if the request comes via https, it returns ssl_uploads_url.
So, by setting
in my test environment, I managed to get it to work.$config['ssl_uploads_url'] = 'http://...';