File tree Expand file tree Collapse file tree 3 files changed +22
-6
lines changed Expand file tree Collapse file tree 3 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 13
13
https : false ,
14
14
http2 : true ,
15
15
16
- cdn : true ,
16
+ cdn : false ,
17
17
non_www : true ,
18
18
php : '7.2' ,
19
19
index_html : false ,
50
50
docs : 'pdf|docx?|xlsx?|pptx?'
51
51
} ;
52
52
53
+ $scope . gzipTypes = 'text/plain text/css text/xml application/json application/javascript application/xml+rss application/atom+xml image/svg+xml' ;
54
+
53
55
54
56
55
57
/////////////////////
Original file line number Diff line number Diff line change 41
41
gzip_vary on;
42
42
gzip_proxied any;
43
43
gzip_comp_level 6;
44
- gzip_types text/plain text/css text/xml application/json application/javascript application/xml+rss application/atom+xml image/svg+xml ;</ span >
44
+ gzip_types {{ gzipTypes }} ;</ span >
Original file line number Diff line number Diff line change 40
40
41
41
ssl_certificate /etc/letsencrypt/live/{{ data.domain }}/fullchain.pem;
42
42
ssl_certificate_key /etc/letsencrypt/live/{{ data.domain }}/privkey.pem;
43
- ssl_trusted_certificate /etc/letsencrypt/live/{{ data.domain }}/fullchain.pem;
43
+ ssl_trusted_certificate /etc/letsencrypt/live/{{ data.domain }}/fullchain.pem;< span ng-if ="data.gzip ">
44
+
45
+ # gzip
46
+ gzip on;
47
+ gzip_vary on;
48
+ gzip_proxied any;
49
+ gzip_comp_level 6;
50
+ gzip_types {{ gzipTypes }};</ span >
44
51
45
52
include _ssl.conf;
46
53
51
58
}
52
59
53
60
location / {
54
- deny all
61
+ deny all;
55
62
}
56
63
}</ span >
57
64
109
116
server_name cdn.{{ data.domain }};
110
117
root /var/www/{{ data.domain }}{{ data.document_root }};< span ng-if ="data.access_log !== '' ">
111
118
112
- access_log off;</ span >
119
+ access_log off;</ span > < span ng-if ="data.gzip ">
120
+
121
+ # gzip
122
+ gzip on;
123
+ gzip_vary on;
124
+ gzip_proxied any;
125
+ gzip_comp_level 6;
126
+ gzip_types {{ gzipTypes }};</ span >
113
127
114
128
location ~* \.(?:{{ extensions.assets }}|{{ extensions.fonts }}|{{ extensions.svg }}|{{ extensions.images }}|{{ extensions.audio }}|{{ extensions.video }}|{{ extensions.docs }})$ {
115
129
add_header Access-Control-Allow-Origin "*";
118
132
}
119
133
120
134
location / {
121
- deny all
135
+ deny all;
122
136
}
123
137
}</ span >
124
138
You can’t perform that action at this time.
0 commit comments