SSL Configuration Guide
Secure your WuWei platform with HTTPS by following these steps to configure SSL in the Nginx container.
1. Copy the SSL Configuration File
Navigate to the nginx config directory and prepare the SSL configuration:
cd /root/ctc-docker/nginx/conf.d
cp ssl-default.conf.sample ssl-default.conf
2. Add Your SSL Certificate
Place your SSL certificate files in the following directory:
/root/ctc-docker/nginx/ssl
Make sure you have:
fullchain.pem
or.crt
fileprivkey.pem
or.key
file
3. Update SSL Configuration
server_name your_domain.com;
ssl_certificate /etc/nginx/ssl/your_cert.crt;
ssl_certificate_key /etc/nginx/ssl/your_key.key;
Replace your_domain.com
, your_cert.crt
, your_key.key
with your actual values.
4. Disable the Default Config
Rename the existing default Nginx config to avoid conflict:
mv default.conf default.conf.bak
5. Restart Nginx Container
Apply your changes by restarting the Nginx container:
docker restart wuwei-nginx
6. Verify HTTPS Access
Open your browser and access your WuWei site via:
https://{your_domain}
Make sure the SSL certificate is valid and the site loads securely.