Enable SSL with Traefik
By default, SSL is enabled with a self signed certificate. You have to copy your own certificates according to your domain
Prerequisites:
mkcert
installed to create a new self-signed certificate.- Certificates for your domain
Step 1: Copy your certificates files
Copy your certificates files to the server hosting Liberty Framework
Transfer you certificate to the Docker container
docker cp <your_certificate_directory>/cert.pem traefik:/etc/certs/cert.pem docker cp <your_certificate_directory>/key.pem traefik:/etc/certs/key.pem
Final Administrator Note: Certificates must be transferred to the Docker container with each renewal
Step2: Create a self-signed certificate (optional)
Connect to the server hosting Liberty Framework
- Create a new self signed certificate
mkcert -key-file ./certs/key.pem -cert-file ./certs/cert.pem '<server_name>'
- Transfer you certificate to the Docker container
docker cp ./certs/cert.pem traefik:/etc/certs/cert.pem docker cp ./certs/key.pem traefik:/etc/certs/key.pem
Final Administrator Note: After updating both files, it is required to restart the Traefik service to apply the new settings.