@@ -78,10 +78,11 @@ As a last step, we should configure the communication between the Moodle instanc
...
@@ -78,10 +78,11 @@ As a last step, we should configure the communication between the Moodle instanc
### Set the service URL
### Set the service URL
- Configure the communication from *Moodle* to *Autograde* by going to `Site Administration > Plugins > Autograde`:
Configure the communication from *Moodle* to *Autograde* by going to `Site Administration > Plugins > Autograde`:
- Add the provided `Service URL`.
- Add the provided `Service URL`.
- Add the provided `API Key`.
- Add the provided `API Key`.
> Please refer to the [configuration files](../k8s/deployments/local) for local development
> 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
### Create the Moodle access token
...
@@ -89,3 +90,5 @@ As a last step, we should configure the communication between the Moodle instanc
...
@@ -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 your autograde bot user as the user
- Select *AUTOGRADE* as the service
- Select *AUTOGRADE* as the service
- Provide the *access token* and the *Moodle Base URL* to the autograde admins.
- 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.