-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsalex.tk
59 lines (48 loc) · 1.12 KB
/
tsalex.tk
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
# TSALEX.TK
server
{
listen 80;
server_name tsalex.tk;
root /etc/www/my_site;
index index.html index.htm;
location /
{
try_files $uri $uri/ =404;
}
}
# HTTPS server
server
{
listen 443 ssl;
server_name tsalex.tk;
ssl_certificate /etc/letsencrypt/live/tsalex.tk/cert.pem;
ssl_certificate_key /etc/letsencrypt/live/tsalex.tk/privkey.pem;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
root /etc/www/my_site;
index index.html index.htm;
location /
{
try_files $uri $uri/ =404;
}
location /EN
{
alias /etc/www/English/;
}
location /Music
{
alias /etc/www/Music/;
}
location ~* \.(jpg|jpeg|png|gif|ico|css|js|pdf)$
{
expires 365d;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html
{
root /etc/www/my_site;
}
}