I am trying to deploy moodle on render.com and I am able to view the moodle install screen via docker, but the CSS and JS do not seem to be working. I have looked into the cause and found that the server variable $_SERVER[‘HTTPS’] is not set, even though the URL is https. How can I set $_SERVER[‘HTTPS’] to on?
here is Dockerfile.
FROM php:7.4-apache COPY moodle /var/www/html RUN apt update \ && apt install -y --no-install-recommends zlib1g-dev libzip-dev libpq-dev libpng-dev libicu-dev libxml2 libxml2-dev \ && apt -y clean \ && docker-php-ext-install zip pdo pdo_pgsql pgsql gd intl xmlrpc soap opcache \ && mkdir /var/www/moodledata \ && chmod 0777 /var/www/moodledata \ && chmod -R 0755 /var/www/html