Fix overwriting nginx configuration
This commit is contained in:
@@ -120,7 +120,7 @@ class WOStackMigrateController(CementBaseController):
|
||||
pass
|
||||
if os.path.exists(f'/var/www/{site.sitename}/conf/nginx/ssl.conf'):
|
||||
data = dict(ssl_live_path=WOVar.wo_ssl_live,
|
||||
domain=site.sitename)
|
||||
domain=site.sitename, quic=True)
|
||||
WOTemplate.deploy(
|
||||
self, f'/var/www/{site.sitename}/conf/nginx/ssl.conf',
|
||||
'ssl.mustache', data, overwrite=True)
|
||||
|
||||
@@ -126,7 +126,7 @@ def post_pref(self, apt_packages, packages, upgrade=False):
|
||||
data = dict(tls13=True, release=WOVar.wo_version)
|
||||
WOTemplate.deploy(self,
|
||||
'/etc/nginx/nginx.conf',
|
||||
'nginx-core.mustache', data)
|
||||
'nginx-core.mustache', data, overwrite=True)
|
||||
|
||||
if not os.path.isfile('{0}/gzip.conf.disabled'.format(ngxcnf)):
|
||||
data = dict(release=WOVar.wo_version)
|
||||
|
||||
Reference in New Issue
Block a user