-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdefault.conf
37 lines (28 loc) · 999 Bytes
/
default.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
server {
listen 80;
root /usr/share/nginx/html;
server_name tweaxy.gleeze.com;
location ~ /.well-known/acme-challenge{
allow all;
root /usr/share/nginx/html/letsencrypt;
}
location / {
return 301 https://tweaxy.gleeze.com$request_uri;
}
}
server {
listen 443 ssl http2;
server_name tweaxy.gleeze.com;
root /usr/share/nginx/html;
server_tokens off;
ssl_certificate /etc/nginx/ssl/live/tweaxy.gleeze.com/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/live/tweaxy.gleeze.com/privkey.pem;
ssl_dhparam /etc/nginx/dhparam/dhparam-2048.pem;
ssl_buffer_size 8k;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
ssl_prefer_server_ciphers on;
ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES:!ADH:!AECDH:!MD5;
location / {
try_files $uri $uri/ /index.html;
}
}