forked from kubevela/velaux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.conf
51 lines (41 loc) · 1.28 KB
/
web.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
user nginx;
worker_processes auto;
error_log /dev/stderr notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /dev/stdout main;
sendfile on;
keepalive_timeout 65;
gzip on;
upstream apiserver {
server KUBEVELA_API_URL;
}
server {
listen 80;
location /index.html {
add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";
root /usr/share/nginx/html;
index index.html index.htm;
}
location / {
try_files $uri $uri/ /index.html;
root /usr/share/nginx/html;
index index.html index.htm;
}
location /api {
proxy_read_timeout 150;
proxy_pass http://apiserver;
}
error_page 404 /notFound;
# redirect server error pages to the static page /500Error
error_page 500 502 503 504 /500Error;
}
}