Configuring the C2

If required the infrastructure can be changed inside the docker-compose.yml file. This file contains all the containers that are being used.

Before starting any Docker container, a few things must be configured first.

  • Change the passwords in the global.env file

  • Place all SSL certificates and keys into their respective folders

global.env

This file contains all the variables that are used across the containers. It is highly advised to not touch any variables, except the passwords. You should change the passwords to your requirements.

SSL certificates and keys

Copy the certs you created at the Getting started page into the following respective places. Know that the filenames are case sensitive.

./project_webserver/apache2.crt

./project_api/flask_api/ca.crt
./project_api/flask_api/flask.crt

/var/lib/docker/volumes/serverside_mosquitto-conf/_data/mosquitto.crt
/var/lib/docker/volumes/serverside_mosquitto-conf/_data/mosquitto.key
/var/lib/docker/volumes/serverside_mosquitto-conf/_data/rootCA.crt

Last updated