Skip to content

Commit

Permalink
fix(autossl) pass storage config to acme client (#43)
Browse files Browse the repository at this point in the history
Fix #40
  • Loading branch information
fffonion committed Apr 8, 2022
1 parent f5affd3 commit 5cc8f2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ default_config = {
eab_hmac_key = nil,
-- external account registering handler
eab_handler = nil,
-- storage for challenge
storage_adapter = "shm",
-- the storage config passed to storage adapter
storage_config = {
shm_name = "acme"
Expand Down
3 changes: 3 additions & 0 deletions lib/resty/acme/autossl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ function AUTOSSL.init(autossl_config, acme_config)
autossl_config.storage_adapter = "resty.acme.storage." .. autossl_config.storage_adapter
end

acme_config.storage_adapter = autossl_config.storage_adapter
acme_config.storage_config = autossl_config.storage_config

if autossl_config.account_key_path then
acme_config.account_key = AUTOSSL.load_account_key(autossl_config.account_key_path)
else
Expand Down

0 comments on commit 5cc8f2a

Please sign in to comment.