HTTPS configuration

Before configuring HTTPS, you will need to perform a basic setup and install Test IT.

Open port 443 (details can be found in the installation instructions).

In the .env file, uncomment the variables SSL_CERTIFICATE and SSL_CERTIFICATE_KEY.

## internal certificate path

Uncomment REDIRECT_TO_HTTPS to redirect HTTP to HTTPS.

To make the service frontend available via an HTTPS protocol, register port 443 in the docker-compose.yml file:

- 80:80
- 443:443

Prepare the files with a certificate and key. To do this, give them the names testit.crt and testit.key.

The certificate filenames must match the value of the variables SSL_CERTIFICATE and SSL_CERTIFICATE_KEY in the .env file.

Copy the files you prepared to the certificate archive:

certs=$(docker inspect prod_ssl-volume --format '{{ .Mountpoint }}')
cp testit.crt ${certs}/
cp testit.key ${certs}/

Apply the changes by executing the command:

docker-compose -f docker-compose.yml --project-name prod up --detach --timeout 120