29 lines
575 B
Markdown
29 lines
575 B
Markdown
# docker-nginx-auto
|
|
|
|
Nginx with tricks
|
|
|
|
- OpenResty
|
|
- Snippets for TLS/SSL, gzip, reverse proxy, websocket proxy, and proxy cache
|
|
- Automatic Let's Encrypt certificate
|
|
- Automatic reload on configuration change
|
|
|
|
Production:
|
|
|
|
```sh
|
|
docker run -d --name=docker-nginx-auto \
|
|
-e ACME_EMAIL=user@host \
|
|
-p 80:80 -p 443:443 \
|
|
-v nginx-config:/usr/local/openresty/nginx/conf \
|
|
docker-nginx-auto
|
|
```
|
|
|
|
Staging:
|
|
|
|
```sh
|
|
docker run -d --name=docker-nginx-auto \
|
|
-e ACME_STAGING=true \
|
|
-p 80:80 -p 443:443 \
|
|
-v nginx-config:/usr/local/openresty/nginx/conf \
|
|
docker-nginx-auto
|
|
```
|