Fix overwriting nginx configuration

This commit is contained in:
VirtuBox
2024-06-08 16:04:57 +02:00
parent e02fb864ad
commit 0235fe5920
2 changed files with 2 additions and 2 deletions

View File

@@ -120,7 +120,7 @@ class WOStackMigrateController(CementBaseController):
pass pass
if os.path.exists(f'/var/www/{site.sitename}/conf/nginx/ssl.conf'): if os.path.exists(f'/var/www/{site.sitename}/conf/nginx/ssl.conf'):
data = dict(ssl_live_path=WOVar.wo_ssl_live, data = dict(ssl_live_path=WOVar.wo_ssl_live,
domain=site.sitename) domain=site.sitename, quic=True)
WOTemplate.deploy( WOTemplate.deploy(
self, f'/var/www/{site.sitename}/conf/nginx/ssl.conf', self, f'/var/www/{site.sitename}/conf/nginx/ssl.conf',
'ssl.mustache', data, overwrite=True) 'ssl.mustache', data, overwrite=True)

View File

@@ -126,7 +126,7 @@ def post_pref(self, apt_packages, packages, upgrade=False):
data = dict(tls13=True, release=WOVar.wo_version) data = dict(tls13=True, release=WOVar.wo_version)
WOTemplate.deploy(self, WOTemplate.deploy(self,
'/etc/nginx/nginx.conf', '/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)): if not os.path.isfile('{0}/gzip.conf.disabled'.format(ngxcnf)):
data = dict(release=WOVar.wo_version) data = dict(release=WOVar.wo_version)