SSL support with custom cert.
To enable SSL with your custom certificate, follow the steps below:
- Copy your certificate and key to certs/nginx.crt and certs/nginx.key
- Copy your dhparam file to certs/dhparam.pem
- Edit conf/nginx.conf to update
__server_names__to your domain or IP address - Perform any other configuration edits that you might need. Be sure to update sublime.env with the BASE_URL that will be used to access Sublime, according to your DNS configuration. See here for more details.
- Run
docker build -t sublime_nginx_custom_ssl . - Run
cd ..(back to sublime-platform directory) - Run
docker compose --profile nginx-custom-ssl up(use-dto run as a daemon) - If you made changes to sublime.env above, restart the entire stack:
docker compose --profile nginx-custom-ssl restart(optionally-d)