mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 05:15:49 +01:00
This commit is contained in:
@@ -374,9 +374,11 @@ class ApacheVhost:
|
||||
# General Configurations tab
|
||||
try:
|
||||
confFile = open(vhFile, "w+")
|
||||
virtualHostName = vhFile.split('/')[6]
|
||||
|
||||
currentConf = vhostConfs.OLSLBConf
|
||||
currentConf = currentConf.replace('{adminEmails}', administratorEmail)
|
||||
currentConf = currentConf.replace('{domain}', virtualHostName)
|
||||
|
||||
confFile.write(currentConf)
|
||||
confFile.close()
|
||||
|
||||
@@ -395,6 +395,19 @@ REWRITERULE ^(.*)$ HTTP://proxyApacheBackendSSL/$1 [P,L]
|
||||
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}]
|
||||
listen = {sockPath}{Sock}.sock
|
||||
|
||||
Reference in New Issue
Block a user