Securing the API with TLS.
Prepare the environment
Configure Nginx
api.example.com
and app.example.com
with your domain name, and remember to point the domain to the server’s IP address.Start the container
Retrieve the certificates
Remove the container
Set the auto-renewal
renew_cert.sh
:/path/to
with the actual path to the directories./path/to
with the actual path to the script.Finalize settings and run the process
443
.