Parse $hostname in server_name

This commit is contained in:
OsirisInferi 2020-02-02 21:56:09 +01:00
parent 174fa0e05c
commit 7d0651c315
No known key found for this signature in database
GPG key ID: B688335E5BED4F30

View file

@ -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: