Skip to content

vdx-vn/nginx-certbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages