usmannasir
2024-03-16 01:00:58 +05:00
parent 4a6a2b8f62
commit a3e65b0f36
2 changed files with 15 additions and 0 deletions

View File

@@ -374,9 +374,11 @@ class ApacheVhost:
# General Configurations tab # General Configurations tab
try: try:
confFile = open(vhFile, "w+") confFile = open(vhFile, "w+")
virtualHostName = vhFile.split('/')[6]
currentConf = vhostConfs.OLSLBConf currentConf = vhostConfs.OLSLBConf
currentConf = currentConf.replace('{adminEmails}', administratorEmail) currentConf = currentConf.replace('{adminEmails}', administratorEmail)
currentConf = currentConf.replace('{domain}', virtualHostName)
confFile.write(currentConf) confFile.write(currentConf)
confFile.close() confFile.close()

View File

@@ -395,6 +395,19 @@ REWRITERULE ^(.*)$ HTTP://proxyApacheBackendSSL/$1 [P,L]
END_rules END_rules
} }
vhssl {
keyFile /etc/letsencrypt/live/{domain}/privkey.pem
certFile /etc/letsencrypt/live/{domain}/fullchain.pem
certChain 1
sslProtocol 24
enableECDHE 1
renegProtection 1
sslSessionCache 1
enableSpdy 15
enableStapling 1
ocspRespMaxAge 86400
}
""" """
phpFpmPool = """[{www}] phpFpmPool = """[{www}]
listen = {sockPath}{Sock}.sock listen = {sockPath}{Sock}.sock