-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx-site
More file actions
34 lines (25 loc) · 799 Bytes
/
nginx-site
File metadata and controls
34 lines (25 loc) · 799 Bytes
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
server {
listen 80;
listen 443 ssl http2;
ssl_certificate /root/certs/rikard.ru.crt;
ssl_certificate_key /root/certs/rikard.ru.key;
return 404;
}
server {
listen 80;
listen 443 ssl http2;
ssl_certificate /root/certs/rikard.ru.crt;
ssl_certificate_key /root/certs/rikard.ru.key;
server_name rikard.ru;
if ($scheme = http) {
return 301 https://$server_name$request_uri;
}
charset UTF-8;
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header Strict-Transport-Security "max-age=31536000";
location / {
proxy_pass http://127.0.0.1:8080;
}
}