An open API service indexing awesome lists of open source software.

https://github.com/abiriadev/letsencrypt-nginx

Reusable & customizable NGINX container for Let's Encrypt SSL certificate
https://github.com/abiriadev/letsencrypt-nginx

container-image letsencrypt nginx-docker

Last synced: 7 days ago
JSON representation

Reusable & customizable NGINX container for Let's Encrypt SSL certificate

Awesome Lists containing this project

README

          

Let's Encrypt + NGINX

# Usage

```sh
$ docker run \
-p 80:80 \
-p 443:443 \
-e NGINX_SSL_CERT=/etc/nginx/keys/fullchain.pem \
-e NGINX_SSL_KEY=/etc/nginx/keys/privkey.pem \
-v /etc/letsencrypt/live/${YOUR_DOMAIN}/fullchain.pem:/etc/nginx/keys/fullchain.pem \
-v /etc/letsencrypt/live/${YOUR_DOMAIN}/privkey.pem:/etc/nginx/keys/privkey.pem \
ghcr.io/abiriadev/letsencrypt-nginx:main
```

Or, using docker compose:

```sh
$ wget https://raw.githubusercontent.com/abiriadev/letsencrypt-nginx/main/compose.yaml
$ docker compose up -d
```