reorganize ssl config ; default proxy config

This commit is contained in:
2021-05-24 14:58:42 +00:00
parent ab8e4dbdbd
commit 04211ed730
7 changed files with 14 additions and 9 deletions

14
snippets/ssl.conf Normal file
View File

@@ -0,0 +1,14 @@
ssl_certificate_by_lua_block {
auto_ssl:ssl_certificate()
}
# You must still define a static ssl_certificate file for nginx to start.
#
# You may generate a self-signed fallback with:
#
# openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 \
# -subj '/CN=sni-support-required-for-valid-ssl' \
# -keyout /etc/ssl/resty-auto-ssl-fallback.key \
# -out /etc/ssl/resty-auto-ssl-fallback.crt
ssl_certificate /etc/ssl/resty-auto-ssl-fallback.crt;
ssl_certificate_key /etc/ssl/resty-auto-ssl-fallback.key;