Test Modeller Core Linux – SSL Certificate Installation
1 – Use correct docker-compose.yml file
Delete the existing docker-compose.yml file and rename the
docker-compose-fullstack-ssl.yml so that it is called docker-compose.yml
2 – Obtain SSL Certificate
For testing you can create a self-signed SSL certificate.
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /nginx/server.key -out /nginx/server.crt |
It is recommended for production you obtain a signed SSL certificate from a registered issuing authority.
You should have a .crt and a .key file. Place these on the host machine's local storage. If you have paced them in a directory different than "/nginx", edit the volumes key in the docker-compose.yml file accordingly – replace these sections with your location.
/nginx/server.crt:/etc/nginx/server.crt |
3 – Edit the .env file
Change the following variables in the .env file:
Variable | Default | Replace with |
---|---|---|
HOST_PROTOCOL | http:// | https:// |
HOST_PORT | 80 | 443 |
4 – Start the Test Modeller Services
5 – Enable TLS v1.2 (Optional)
Configure the server block to enable TLS v1.2. Note TLS v1.2 and below should only be used in development environments.
ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH; |
TEST MODELLER SET UP AND INSTALLATION