...
Nginx configuration file can be edited using the following command:
Code Block nano /etc/nginx/sites-enabled/default
Search for the server bracket that is listening to port 443. Certbot configuration can be found here.
Edit and add the locations to redirect traffic.
Code Block location / { proxy_pass http://localhost:8080; proxy_redirect off; }
The above configuration will make Moodle accessible by using the base domain (https://exampledomain.com)
...