feat(reverse_proxy): fix caddy letsencrypt
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
@@ -1,14 +1,6 @@
|
||||
{
|
||||
acme_dns netcup {
|
||||
customer_number {{ netcup_customer_id }}
|
||||
api_key {{ netcup_api_key }}
|
||||
api_password {{ netcup_api_password }}
|
||||
}
|
||||
email {{ caddy.admin_email | default('admin@example.com') }}
|
||||
acme_ca {{ caddy.acme_ca | default('https://acme-v02.api.letsencrypt.org/directory') }}
|
||||
}
|
||||
|
||||
*.{{ domain }} {
|
||||
email {{ caddy.admin_email | default('admin@example.com') }}
|
||||
acme_ca {{ caddy.acme_ca | default('https://acme-v02.api.letsencrypt.org/directory') }}
|
||||
}
|
||||
|
||||
{% for service in services %}
|
||||
@@ -24,6 +16,17 @@
|
||||
output file /var/log/caddy/{{ service.name }}.log
|
||||
format json
|
||||
}
|
||||
|
||||
tls {
|
||||
dns netcup {
|
||||
customer_number {{ netcup_customer_id }}
|
||||
api_key {{ netcup_api_key }}
|
||||
api_password {{ netcup_api_password }}
|
||||
}
|
||||
propagation_timeout 900s
|
||||
propagation_delay 600s
|
||||
resolvers 1.1.1.1
|
||||
}
|
||||
}
|
||||
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user