Skip to content
Permalink
Browse files

doc(readme) remove events shm and move lua_ssl_* directive to server

block in sample configuration
  • Loading branch information
fffonion committed Jan 22, 2020
1 parent 9c46965 commit 52ce999db6bdd5c64a0855dc113593d259628570
Showing with 8 additions and 9 deletions.
  1. +8 −9 README.md
@@ -31,16 +31,15 @@ Install using opm:
opm install fffonion/lua-resty-acme
```

This library uses [an FFI-based openssl backend](https://github.com/fffonion/lua-resty-openssl),
which currently supports OpenSSL `1.1.1`, `1.1.0` and `1.0.2` series.


Alternatively, to install using luarocks:

```shell
luarocks install lua-resty-acme
```

This library uses [an FFI-based openssl backend](https://github.com/fffonion/lua-resty-openssl),
which currently supports OpenSSL `1.1.1`, `1.1.0` and `1.0.2` series.


[Back to TOC](#table-of-contents)

@@ -70,7 +69,6 @@ http {
resolver 8.8.8.8 ipv6=off;
lua_shared_dict acme 16m;
lua_shared_dict autossl_events 128k;
init_by_lua_block {
require("resty.acme.autossl").init({
@@ -86,19 +84,20 @@ http {
domain_whitelist = { "example.com" },
})
}
init_worker_by_lua_block {
require("resty.acme.autossl").init_worker()
}
# required to verify Let's Encrypt API
lua_ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt;
lua_ssl_verify_depth 2;
server {
listen 80;
listen 443 ssl;
server_name example.com;
# required to verify Let's Encrypt API
lua_ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt;
lua_ssl_verify_depth 2;
# fallback certs, make sure to create them before hand
ssl_certificate /etc/openresty/default.pem;
ssl_certificate_key /etc/openresty/default.key;

0 comments on commit 52ce999

Please sign in to comment.
You can’t perform that action at this time.