bundles/nginx: do not try to get reltsenrypt certificates for non-domains
This commit is contained in:
parent
36c2f22795
commit
575474af83
1 changed files with 4 additions and 0 deletions
|
@ -73,6 +73,10 @@ def letsencrypt(metadata):
|
||||||
for vhost, config in metadata.get('nginx/vhosts', {}).items():
|
for vhost, config in metadata.get('nginx/vhosts', {}).items():
|
||||||
if config.get('ssl', 'letsencrypt') == 'letsencrypt':
|
if config.get('ssl', 'letsencrypt') == 'letsencrypt':
|
||||||
domain = config.get('domain', vhost)
|
domain = config.get('domain', vhost)
|
||||||
|
|
||||||
|
if '.' not in domain:
|
||||||
|
continue
|
||||||
|
|
||||||
domains[domain] = config.get('domain_aliases', set())
|
domains[domain] = config.get('domain_aliases', set())
|
||||||
vhosts[vhost] = {
|
vhosts[vhost] = {
|
||||||
'ssl': 'letsencrypt',
|
'ssl': 'letsencrypt',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue