mirror of
https://github.com/certbot/certbot.git
synced 2026-08-04 08:03:44 +02:00
Parse $hostname in server_name
This commit is contained in:
@@ -598,6 +598,13 @@ class NginxConfigurator(common.Installer):
|
|||||||
all_names = set() # type: Set[str]
|
all_names = set() # type: Set[str]
|
||||||
|
|
||||||
for vhost in self.parser.get_vhosts():
|
for vhost in self.parser.get_vhosts():
|
||||||
|
try:
|
||||||
|
vhost.names.remove("$hostname")
|
||||||
|
vhost.names.add(socket.gethostname())
|
||||||
|
breakpoint()
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
all_names.update(vhost.names)
|
all_names.update(vhost.names)
|
||||||
|
|
||||||
for addr in vhost.addrs:
|
for addr in vhost.addrs:
|
||||||
|
|||||||
Reference in New Issue
Block a user