Formbricks One-Click setup already comes with a valid SSL certificate using Let’s Encrypt. This guide is only if you already have a valid SSL certificate that you need to use due to company policy or other requirements.
Step 1: Navigate to the Formbricks Folder
Move into theformbricks/ directory:
Step 2: Create a Folder for SSL Certificates
Create a folder calledcerts and place your SSL certificate files inside:
Step 3: Understand SSL Certificate Files
- fullchain.crt – Your SSL certificate, including the full certificate chain.
- cert.key – The private key used to encrypt data.
Step 4: Set Correct File Permissions
Ensure the certificate files have the right permissions:Step 5: Update traefik.yaml
Modify the file to define HTTP and HTTPS settings:
Step 6: Create certs-traefik.yaml
Create a certs-traefik.yaml file that specifies the path to your custom SSL certificate and key.
Step 7: Update docker-compose.yml
Modify the configuration to enforce SSL. The rest of the configuration should remain the same as the One-Click setup:
Summary
- Navigate to the Formbricks folder
-
Create a
certs/folder and move your certificate files inside. -
Ensure you have the correct certificate files (
fullchain.crtandcert.key). - Update file permissions for security.
-
Modify
traefik.yamlto handle HTTPS. -
Create
certs-traefik.yamlto point to your certificate files. -
Update
docker-compose.ymlto use your custom SSL certificate.