We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9962a6 + d7904d2 commit a0d77e8Copy full SHA for a0d77e8
Caddyfile.generate
@@ -45,6 +45,9 @@ class CaddyfileGenerator:
45
)
46
47
for domain, backend_authority in sorted(self._backend_of.items()):
48
+ if backend_authority is None:
49
+ continue
50
+
51
print(
52
dedent("""
53
%s {
@@ -80,7 +83,11 @@ def run(options):
80
83
alias_domains = config.get(domain, "aliases").split()
81
84
except NoOptionError:
82
85
alias_domains = []
- backend_authority = config.get(domain, "backend")
86
87
+ try:
88
+ backend_authority = config.get(domain, "backend")
89
+ except NoOptionError:
90
+ backend_authority = None
91
92
site = CaddyfileGenerator.Site(alias_domains, backend_authority, domain)
93
caddyfile.add(site)
0 commit comments