-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
50 lines (41 loc) · 1.06 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
server {
server_name bitcoin-global.io;
listen 80;
#listen [::]:80 ipv6only=on;
location / {
return 301 https://bitcoin-global.io$request_uri;
}
}
server {
server_name bitcoin-global.io;
listen 443 ssl http2;
#listen [::]:443 ssl http2 ipv6only=on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_dhparam /etc/ssl/certs/dhparam.pem;
ssl_certificate /etc/letsencrypt/live/bitcoin-global.io/cert.pem;
ssl_certificate_key /etc/letsencrypt/live/bitcoin-global.io/privkey.pem;
root /var/www/bitcoin-global.io;
index index.html;
location / {
try_files $uri $uri/ =404;
}
error_page 404 /404.html;
location = /404.html {
root /var/www/bitcoin-global.io;
internal;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/bitcoin-global.io;
internal;
}
location ~* \.(jpg|jpeg|png|gif|ico)$ {
expires 30d;
}
location ~* \.(css|js)$ {
expires 7d;
}
}