From 400a776d616081962d2049598bb8074af3e71e00 Mon Sep 17 00:00:00 2001 From: Matt Bovel <matthieu.bovel@epfl.ch> Date: Tue, 4 Feb 2025 13:03:25 +0000 Subject: [PATCH] Update moodle_config.md --- docs/moodle_config.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/moodle_config.md b/docs/moodle_config.md index b1c632be..f510c0c9 100644 --- a/docs/moodle_config.md +++ b/docs/moodle_config.md @@ -78,10 +78,11 @@ As a last step, we should configure the communication between the Moodle instanc ### Set the service URL -- Configure the communication from *Moodle* to *Autograde* by going to `Site Administration > Plugins > Autograde`: - - Add the provided `Service URL`. - - Add the provided `API Key`. - > Please refer to the [configuration files](../k8s/deployments/local) for local development +Configure the communication from *Moodle* to *Autograde* by going to `Site Administration > Plugins > Autograde`: +- Add the provided `Service URL`. +- Add the provided `API Key`. + +> For local development, the values of these options are respectively `http://192.168.1.100:8082` and `12345`, corresponding to the `AUTOGRADE_BASEURL` and `AUTOGRADE_API_KEY` enviroment varailbles in [docker-compose.yaml](../../docker-compose.yaml). ### Create the Moodle access token @@ -89,3 +90,5 @@ As a last step, we should configure the communication between the Moodle instanc - Select your autograde bot user as the user - Select *AUTOGRADE* as the service - Provide the *access token* and the *Moodle Base URL* to the autograde admins. + +> For local development, the environment variable `AUTOGRADE_MOODLE_TOKEN` should be set to the access token generated above, and the docker compose containers should be restarted. \ No newline at end of file -- GitLab