File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 " origin " : " {{ item }}" ,
2626 " resourceRecordsAdd " : [
2727 {
28- " name " : " _acme-challenge.{{ item }}" ,
28+ # "remove" '*.' from entry when it occurs. without it it would try to create a
29+ # record like _acme-challenge.*.example.com which is not allowed by AutoDNS
30+ # see: https://jinja.palletsprojects.com/en/master/templates/#replace
31+ # and: https://jbmoelker.github.io/jinja-compat-tests/filters/replace/#pattern
32+ " name " : " _acme-challenge.{{ item | replace ('*.','') }}" ,
2933 " ttl " : 60,
3034 " type " : " TXT" ,
3135 " value " : " {{ challenge['challenge_data'][item]['dns-01']['resource_value'] }}"
6670 " origin " : " {{ item }}" ,
6771 " resourceRecordsRem " : [
6872 {
69- " name " : " _acme-challenge.{{ item }}" ,
73+ " name " : " _acme-challenge.{{ item | replace ('*.','') }}" ,
7074 " ttl " : 60,
7175 " type " : " TXT" ,
7276 " value " : " {{ challenge['challenge_data'][item]['dns-01']['resource_value'] }}"
You can’t perform that action at this time.
0 commit comments