mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 13:25:51 +01:00
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user