-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
56 lines (43 loc) · 1.39 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
51
52
53
54
55
56
events {}
pid /tmp/nginx.pid;
http {
include mime.types;
types {
application/manifest+json webmanifest;
}
server {
listen 3000;
listen [::]:3000;
server_name bybe.fly.dev;
root /usr/share/nginx/html;
add_header X-Frame-Options "SAMEORIGIN";
add_header Content-Security-Policy "default-src 'self' backbybe.fly.dev";
add_header X-Content-Type-Options "nosniff";
index index.html;
location = /index.html {
internal;
charset utf-8;
add_header Cache-Control "no-cache";
add_header X-Content-Type-Options "nosniff";
}
location ~* .(?:css|js|webmanifest|xml)$ {
charset utf-8;
charset_types *;
add_header Cache-Control "max-age=31536000, public, immutable";
add_header X-Content-Type-Options "nosniff";
}
location ~* .(?:woff2|png|webp|ico)$ {
add_header Cache-Control "max-age=31536000, public, immutable";
add_header X-Content-Type-Options "nosniff";
}
location / {
try_files $uri $uri/ /index.html;
}
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log /var/log/nginx/error.log error;
location ~ /\.(?!well-known).* {
deny all;
}
}
}