Skip to content

Instantly share code, notes, and snippets.

@wmantly
Last active February 12, 2020 22:04
Show Gist options
  • Save wmantly/7fc8a45d3082e04341e12c677342be25 to your computer and use it in GitHub Desktop.
Save wmantly/7fc8a45d3082e04341e12c677342be25 to your computer and use it in GitHub Desktop.
listen 443 ssl http2;
listen 4443 ssl;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_certificate_by_lua_block {
auto_ssl:ssl_certificate()
}
location /.well-known/acme-challenge/ {
content_by_lua_block {
auto_ssl:challenge_server()
}
}
ssl_certificate /etc/ssl/resty-auto-ssl-fallback.crt;
ssl_certificate_key /etc/ssl/resty-auto-ssl-fallback.key;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment