-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideo_baseline_dev.conf
44 lines (36 loc) · 1.31 KB
/
video_baseline_dev.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
server {
listen 8123;
server_name localhost;
root /usr/share/nginx/html/dist;
try_files $uri $uri/ /index.html;
index index.html;
autoindex off;
charset utf-8;
default_type 'text/html';
underscores_in_headers on;
index index.html;
gzip on;
gzip_types text/plain text/css application/json application/x-javascript text/javascript text/tml image/png image/jpg image/gif;
location /devApi/ {
proxy_pass http://192.168.10.146:8670/;
#proxy_redirect off;
client_max_body_size 1000m;
rewrite ^/devApi/(.*) /$1 break;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Authorization $http_authorization;
}
location ~^/baseLineimages/(.*) {
alias /usr/share/nginx/html/dist/baseLineimages/$1;
}
location /validate/image/code {
proxy_pass http://192.168.10.146:8666/validate/image/code;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Authorization $http_authorization;
}
}