I'm trying to deploy new Moodle at our school. Everything is installed on VM Windows Server 2012 R2 (IIS, PHP, MySQL, LetsEncrypt SSL), and it works fine in the intranet (access from "serverIP:port"). The problem is when I want to make it available from the Internet. I have a public IP, set the port forwarding on the router, so access will be on "publicIP:port" (I did not even try reverse proxy). I will overwrite the address in config.php to "publicIP:port". And there is a problem when I try to access from the Internet, it shows the "Too many redirects" error or it does not get it at all. What with this ? I have tried many solutions that I found on the Internet.
Thank you for help.