【文件属性】:
文件名称:docker-nginx-auto-ssl
文件大小:11KB
文件格式:ZIP
更新时间:2021-04-03 15:34:51
Shell
docker-nginx-auto-ssl
向您的站点添加SSL证书的最简单解决方案
使用Let's加密和Open Resty并具有合理的SSL设置,HTTP / 2和WebSockets开箱即用的自动生成SSL证书的Docker映像。 您可以使用ENV变量指定允许的域和简单代理,并轻松地根据需要覆盖nginx.conf 。
这要归功于和 。
图像状态:用于生产中。 将来可能会添加一些向后兼容的更改。
用法
快速开始为您的博客/应用程序生成和自动更新证书:
# replace these values
export DOMAIN=yourdomain.com
export APP_ADDRESS=localhost:8080
# install docker first, and then run following command
docker run -d \
--nam
【文件预览】:
docker-nginx-auto-ssl.-master
----Dockerfile(1KB)
----LICENSE(1KB)
----entrypoint.sh(2KB)
----README.md(7KB)
----nginx.conf(583B)
----.gitattributes(16B)
----snippets()
--------resty-server-https.conf(262B)
--------server-default.conf(381B)
--------server-proxy.conf(689B)
--------resty-http.conf(2KB)
--------server-gzip.conf(577B)
--------ssl.conf(904B)
--------force-https.conf(55B)
--------resty-server-http.conf(131B)