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
SSL_CERTIFICATE=/etc/nginx/ssl/testit.crt
SSL_CERTIFICATE_KEY=/etc/nginx/ssl/testit.key
#REDIRECT_TO_HTTPS=true

Uncomment REDIRECT_TO_HTTPS to redirect HTTP to HTTPS.

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

services:
frontend:
image: "${DOCKER_REGISTRY}/frontend:${CONTAINER_VERSION}"
ports:
- 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}/

Restart Test IT.