-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
78 lines (72 loc) · 1.71 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
server {
listen 80 default;
server_name _;
passenger_enabled on;
gzip on;
root /home/deploy/peatio/current/public;
location = /favicon.png {
expires max;
add_header Cache-Control public;
}
location = /ZeroClipboard.swf {
expires max;
add_header Cache-Control public;
}
location ~ ^/(assets)/ {
gzip_static on;
expires max;
add_header Cache-Control public;
}
# disable gzip on all omniauth paths to prevent BREACH
location ~ ^/auth/ {
gzip off;
passenger_enabled on;
}
}
#server {
# listen 443 ssl spdy default;
# server_name _;
# passenger_enabled on;
# gzip on;
#
# root /home/deploy/peatio/current/public;
#
# ssl on;
# ssl_certificate /somewhere/server.crt;
# ssl_certificate_key /somewhere/server.key;
#
# ssl_ciphers "AES128+EECDH:AES128+EDH";
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
# ssl_prefer_server_ciphers on;
# ssl_session_cache shared:SSL:10m;
# add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
# add_header X-Frame-Options DENY;
# add_header X-Content-Type-Options nosniff;
# ssl_stapling on; # Requires nginx >= 1.3.7
# ssl_stapling_verify on; # Requires nginx => 1.3.7
# resolver 8.8.4.4 8.8.8.8 valid=300s;
# resolver_timeout 5s;
#
# location = /favicon.png {
# expires max;
# add_header Cache-Control public;
# }
#
# location = /ZeroClipboard.swf {
# expires max;
# add_header Cache-Control public;
# }
#
# location ~ ^/(assets)/ {
# gzip_static on;
# expires max;
# add_header Cache-Control public;
#
# }
#
# # disable gzip on all omniauth paths to prevent BREACH
# location ~ ^/auth/ {
# gzip off;
# passenger_enabled on;
# }
#}