This PR introduces several enhancements to the Alpine-Moodle container to provide easier management and reverse proxy support. The changes include the addition of management scripts for enrolling users and updating settings, an optimization of the startup script, and automatic updating of information in the container when variables are changed. The specific details of the improvements are:
Reverse Proxy Support:
An option to configure a reverse proxy has been added, allowing the container to operate correctly behind a reverse proxy.
Management Scripts:
A enrol.php script has been added that allows enrolling users in courses by specifying the username, course ID, and role.
A function has been added in the startup script to update the username, password, and email of the Moodle admin user.
Startup Script Optimization:
The startup script has been reorganized to encapsulate logic into functions, making the script easier to read and maintain.
Error checking has been added to ensure necessary values are provided in the command line of the enrol.php script.
Automatic Reflection of Variable Changes:
Now, if variables are changed in the script, the information will be reflected in the container on the next startup without the need for additional steps.
Testing Instructions:
Verify that the reverse proxy option works as expected.
Use the enrol.php script to enrol users and verify that it works correctly.
Change the variables in the startup script and verify that the information updates in the container.
Documentation Impact:
Documentation will need to be updated to include information on how to use the new reverse proxy option and management scripts.
This PR introduces several enhancements to the Alpine-Moodle container to provide easier management and reverse proxy support. The changes include the addition of management scripts for enrolling users and updating settings, an optimization of the startup script, and automatic updating of information in the container when variables are changed. The specific details of the improvements are:
Reverse Proxy Support:
Management Scripts:
enrol.php
script has been added that allows enrolling users in courses by specifying the username, course ID, and role.Startup Script Optimization:
enrol.php
script.Automatic Reflection of Variable Changes:
Testing Instructions:
enrol.php
script to enrol users and verify that it works correctly.Documentation Impact: