-
Notifications
You must be signed in to change notification settings - Fork 92
/
nginx.conf
42 lines (31 loc) · 1.14 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;
listen [::]:80;
server_name web-standards.ru www.web-standards.ru;
return 301 https://web-standards.ru$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.web-standards.ru;
return 301 https://web-standards.ru$request_uri;
ssl_certificate /etc/letsencrypt/live/web-standards.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/web-standards.ru/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/web-standards.ru/chain.pem;
include snippets/ssl-params.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name web-standards.ru;
root /var/www/web-standards.ru/html;
index index.html index.xml;
error_page 404 /404/;
location ~ /podcast/(cover\.png|feed|episodes/\d+\.mp3) {
root /var/www/web-standards.ru;
}
ssl_certificate /etc/letsencrypt/live/web-standards.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/web-standards.ru/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/web-standards.ru/chain.pem;
include snippets/ssl-params.conf;
}