-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdefault.conf
More file actions
56 lines (40 loc) · 1.38 KB
/
default.conf
File metadata and controls
56 lines (40 loc) · 1.38 KB
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
events {}
http {
include mime.types;
default_type application/octet-stream;
server {
listen 80;
server_name webfft.com www.webfft.com;
root /usr/share/nginx/html;
index index.html;
charset utf-8;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
add_header Content-Security-Policy "frame-ancestors 'self';";
gzip on;
gzip_types text/plain text/css text/json application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
location / {
try_files $uri $uri/ /index.html;
}
location ~* \.(css|js|svg|png|bmp|jpeg|jpg|ico|webmanifest)$ {
add_header Cache-Control "public, max-age=31536000, immutable" always;
add_header X-Content-Type-Options "nosniff";
}
location ~ ^/docs {
add_header Cache-Control "public, max-age=31536000, immutable" always;
}
location = /sitemap.xml {
add_header Content-Type "application/xml";
try_files $uri /index.html;
}
location = /robots.txt {
add_header Content-Type "text/plain";
try_files $uri /index.html;
}
error_page 404 /index.html;
location = /40x.html {
}
location = /50x.html {
}
}
}