mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 13:59:02 -04:00
Parse $hostname in server_name
This commit is contained in:
parent
174fa0e05c
commit
7d0651c315
1 changed files with 7 additions and 0 deletions
|
|
@ -598,6 +598,13 @@ class NginxConfigurator(common.Installer):
|
|||
all_names = set() # type: Set[str]
|
||||
|
||||
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)
|
||||
|
||||
for addr in vhost.addrs:
|
||||
|
|
|
|||
Loading…
Reference in a new issue