-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
53 lines (40 loc) · 1.01 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
# https://docs.nginx.com/nginx/admin-guide/web-server/serving-static-content/
events {
worker_connections 4096;
}
http {
error_log /etc/nginx/error_log.log warn;
client_max_body_size 20m;
server {
listen 80;
#listen [::]:8000;
#server_name muresearch.com;
#gzip on;
#gzip_types text / plain application / xml;
#gzip_proxied no-cache no-store private expired auth;
#gzip_min_length 1000;
root /var/muresearch_ui/dist;
index index.html;
location / {
include mime.types;
default_type application/octet-stream;
sendfile on;
sendfile_max_chunk 1m;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 100;
try_files $uri /index.html;
error_page 404 /404.html;
#error_page 404 = /fetch$uri;
}
#location /fetch/ {
# proxy_pass http://backend/;
#}
location /wrong/url {
return 404;
}
#location /permanently/moved/url {
# return 301 http://www.muresearch.com/;
#}
}
}