Skip to content

Commit 6ee7cf1

Browse files
author
yangmv
committed
更新README
1 parent 4589614 commit 6ee7cf1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,15 @@ upstream cmdb{
6161
server 127.0.0.1:9002;
6262
}
6363
64-
location /static {
65-
alias /var/www/CMDB/static;
64+
location /v1/cmdb/ws/ {
65+
#proxy_set_header Host $http_host;
66+
proxy_redirect off;
67+
proxy_set_header X-Real-IP $remote_addr;
68+
proxy_set_header X-Scheme $scheme;
69+
proxy_pass http://cmdb;
70+
proxy_http_version 1.1;
71+
proxy_set_header Upgrade $http_upgrade;
72+
proxy_set_header Connection "upgrade";
6673
}
6774
6875
location /api/cmdb/ {

0 commit comments

Comments
 (0)