fix: point auto-ssl at the redis container

This commit is contained in:
Iain Learmonth 2025-04-28 16:08:42 +01:00
parent 6d90b50690
commit 3f0d12c266

View file

@ -11,6 +11,9 @@ resolver 127.0.0.11 valid=60 ipv6=off;
init_by_lua_block { init_by_lua_block {
auto_ssl = (require "resty.auto-ssl").new() auto_ssl = (require "resty.auto-ssl").new()
auto_ssl:set("storage_adapter", "resty.auto-ssl.storage_adapters.redis") auto_ssl:set("storage_adapter", "resty.auto-ssl.storage_adapters.redis")
auto_ssl:set("redis", {
host = "redis"
})
auto_ssl:set("allow_domain", function(domain) auto_ssl:set("allow_domain", function(domain)
return domain == os.getenv("JASIMA_PROXY_HOST") return domain == os.getenv("JASIMA_PROXY_HOST")
end) end)