moodle hinter NGINX Proxy Manager

vim /var/www/moodle/config.php

$CFG->sslproxy  = true;