-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnginx.conf
52 lines (38 loc) · 1.05 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
worker_processes 12;
events {
worker_connections 1024;
}
http {
include mime.types;
server {
listen 80;
client_body_timeout 5s;
client_header_timeout 5s;
# APP NOT AVAILABLE
# location / {
# proxy_pass https://app-not-available-ai4w47mtcq-ew.a.run.app/;
# }
# APP
location / {
root /usr/share/nginx/html;
index index.html index.htm;
# Clickjacking Protection
add_header X-Frame-Options "DENY";
# Prevent MIME Type Sniffing
add_header X-Content-Type-Options "nosniff";
# XSS Protection
add_header X-XSS-Protection "1; mode=block";
# Referrer Policy
add_header Referrer-Policy "strict-origin-when-cross-origin";
# Cache Control
add_header Cache-Control "no-store, no-cache, must-revalidate";
# to redirect all the requests to index.html,
# useful when you are using react-router
try_files $uri /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
}