Skip to content

Commit

Permalink
templator enable http2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne00n committed Feb 13, 2021
1 parent aff1fe7 commit f17ae8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Class/templator.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ def nginxHTTP(self,domain,target):
def nginxHTTPS(self,domain,target):
template = '''
server {
listen 443;
listen 443 ssl http2;
server_name '''+domain+''';
server_tokens off;
ssl_certificate /opt/woodCDN/certs/'''+domain+'''-fullchain.pem;
ssl_certificate_key /opt/woodCDN/certs/'''+domain+'''-privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3; #drop 1.0 and 1.1
ssl on;
location ~* ^.+\.(?:css|cur|js|jpe?g|gif|htc|ico|png|html|xml|otf|ttf|eot|woff|woff2|svg)$ {
proxy_cache STATIC;
Expand Down

0 comments on commit f17ae8b

Please sign in to comment.