forked from acceptbitcoincash/acceptbitcoincash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
42 lines (34 loc) · 1.04 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
server {
listen 80;
server_name acceptbitcoin.cash;
if ( $http_x_forwarded_proto = 'http' ) {
return 301 https://$host$request_uri;
}
rewrite ^/add$ https://goo.gl/forms/yFE04SyWmQT9I60B3 permanent;
root /usr/share/nginx/html;
location / {
index index.html;
}
location ~* \.(jpg|jpeg|png|gif|ico)$ {
expires 30d;
}
location ~* \.(css|js)$ {
expires 1d;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
## Compression.
gzip on;
gzip_buffers 16 8k;
gzip_comp_level 1;
gzip_http_version 1.1;
gzip_min_length 10;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/x-icon application/vnd.ms-fontobject font/opentype application/x-font-ttf;
gzip_vary on;
gzip_proxied any; # Compression for all requests.
## No need for regexps. See
## http://wiki.nginx.org/NginxHttpGzipModule#gzip_disable
gzip_disable msie6;