-
Notifications
You must be signed in to change notification settings - Fork 81
/
nginx.conf
executable file
·53 lines (46 loc) · 1.03 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
events {
worker_connections 1024;
}
http {
server {
# freecdn nginx conf
include freecdn-boot.conf;
root ../../pub-cdn/www;
# root ../../ext-manifest/www;
expires 1h;
default_type text/plain;
include mime.types;
listen 12345;
## HTTPS conf
# listen 443 ssl http2;
# ...
access_log logs/access.log;
location /works {
return 200 "it works";
}
gzip on;
gzip_static on;
gzip_types
text/plain
text/xml
text/javascript
text/css
application/x-javascript
application/json
application/xml
application/xml+rss
;
brotli on;
brotli_static on;
brotli_types
text/plain
text/xml
text/javascript
text/css
application/x-javascript
application/json
application/xml
application/xml+rss
;
}
}