-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
41 lines (35 loc) · 982 Bytes
/
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
events {
worker_connections 1024;
}
http {
server {
listen 80;
server_name resin;
client_max_body_size 100m;
include /etc/nginx/mime.types;
server_tokens off;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header Strict-Transport-Security "max-age=31536000;";
resolver ${NS} ipv6=off;
set $backend "http://${BACKEND_HOST}:${BACKEND_PORT}";
location /admin {
proxy_pass $backend;
}
location /api {
proxy_pass $backend;
}
location /static {
root /resin-backend;
}
location /uploads {
root /resin-backend;
}
error_page 404 /404.html;
location / {
root /resin-frontend/build;
try_files $uri $uri.html $uri/index.html index.html;
}
}
}