host: HOSTNAME
user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
accept: image/avif,image/webp,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5
accept-language: en-US,en;q=0.5
accept-encoding: gzip, deflate, br, zstd
sec-fetch-dest: image
sec-fetch-mode: no-cors
sec-fetch-site: same-origin
priority: u=6
pragma: no-cache
cache-control: no-cache
te: trailers
x-forwarded-proto: https
x-forwarded-host: HOSTNAME
x-forwarded-for: CLIENT_IP
connection: close
What I'm not sure of is which method here is at fault and how to make the method behave and use "https" instead of "http".
I've tried adding "SetEnv SITE_PROTOCOL https" to my Apache2 configuration and that didn't help.
I tried modifying application/config/config.php to explicitly set site_protocol to https and that broke a bunch of things as I found lots of URLS pointing to
https://HOSTNAME:80, which is very wrong.
I tried changing the code to use url::file instead of url::abs_file and that gave me javascript errors.
Anyone have suggestions on how to make this work?