diff --git a/docs/moodle_config.md b/docs/moodle_config.md index b1c632be024aded224deece57c5cc3fd7b8e6858..f510c0c9028f92323d858379210caaa089ab62d8 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