-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
47 lines (41 loc) · 1.06 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
server {
listen 8880;
root /usr/share/nginx/html;
index index.html;
# MIME-типы будут правильно определены автоматически
location /static/ {
alias /usr/share/nginx/html/static/;
try_files $uri $uri/ =404;
}
location ~* ^/(main\.js|runtime\.js|main\.css|.*\.ttf|sw\.js)$ {
try_files $uri =404;
}
location /app/ {
try_files $uri /index.html;
}
location /login/ {
try_files $uri /index.html;
}
location /register/ {
try_files $uri /index.html;
}
location /inviteBoard/ {
try_files $uri /index.html;
}
location /card/ {
try_files $uri /index.html;
}
location / {
try_files $uri /index.html;
}
location ~* \.(?:css|js|jpg|jpeg|gif|png|svg|ico|woff|woff2|ttf|eot)$ {
expires 1h;
access_log off;
add_header Cache-Control "public";
}
# Обработка ошибок
error_page 404 /index.html;
location = /index.html {
internal;
}
}