-
Notifications
You must be signed in to change notification settings - Fork 29
/
nginx.conf
50 lines (37 loc) · 1.32 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 {
listen 80;
listen [::]:80;
server_name wsd.events www.wsd.events;
return 301 https://wsd.events$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.wsd.events;
return 301 https://wsd.events$request_uri;
ssl_certificate /etc/letsencrypt/live/wsd.events/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/wsd.events/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/wsd.events/chain.pem;
include snippets/ssl-params.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name wsd.events;
root /var/www/wsd.events/html;
index index.html index.htm;
error_page 404 /404/;
error_page 500 502 503 504 /500/;
rewrite /lunch https://yandex.ru/maps/-/CBu-bFGWOC permanent;
location ~ ^/([0-9]+)/([0-9]+)/([0-9]+)/pres/(.+)$ {
rewrite ^/([0-9]+)/([0-9]+)/([0-9]+)/pres/(.+)$ /$1-$2-$3/$4;
}
location ~ ^/[0-9]+\-[0-9]+\-[0-9]+/.*$ {
root /var/www/wsd.events/pres;
}
ssl_certificate /etc/letsencrypt/live/wsd.events/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/wsd.events/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/wsd.events/chain.pem;
include snippets/ssl-params.conf;
# include snippets/csp-headers.conf;
}