Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.14 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.14 KB

Nginx with certbot

  1. Map your domain name to the server IP address on the domain provider's site.

  2. Update nginx config

git clone https://github.com/vdx-vn/nginx-certbot

cd nginx-certbot

# replace <your domain name> to your real domain name
sed -i 's/demo.vdx.vn/<your domain name>/g' conf/default.conf
  1. Run a stand alone nginx container to retrieve a ssl certificate
docker run -d \
           --name nginx-certbot \
           --volume ./ssl:/etc/letsencrypt \
           --volume ./conf:/etc/nginx/conf.d \
           ghcr.io/vdx-vn/nginx-certbot

# Execute the command and provide the required prompt data.
docker exec -it nginx-certbot certbot --nginx
  1. If you request ssl certificate for an Odoo site
  • Use docker compose to start Odoo and nginx containers, check config file sample in conf/odoo.conf.template
  • Retrieve ssl certficate after those services are running
  1. Update retrieved ssl certificates to nginx config

Reference

  1. Generate SSL for localhost
  2. Renew Certbot SSL setup