Nginx: fix hot reload
This commit is contained in:
parent
5d11a408a8
commit
b04e988717
@ -40,7 +40,7 @@ server {
|
||||
location / {
|
||||
proxy_pass http://localhost:5001;
|
||||
|
||||
location ~ /sockjs-node {
|
||||
location ~* /sockjs-node {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
@ -54,13 +54,13 @@ server {
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
|
||||
location ~ /api/2.0 {
|
||||
location ~* /api/2.0 {
|
||||
gzip on;
|
||||
gzip_types application/json application/xml;
|
||||
proxy_pass http://localhost:5000;
|
||||
proxy_set_header X-REWRITER-URL $X_REWRITER_URL;
|
||||
|
||||
location ~ /(people|group) {
|
||||
location ~* /(people|group) {
|
||||
proxy_pass http://localhost:5004;
|
||||
proxy_set_header X-REWRITER-URL $X_REWRITER_URL;
|
||||
|
||||
@ -68,13 +68,13 @@ server {
|
||||
}
|
||||
|
||||
location /products {
|
||||
location ~ /people {
|
||||
location ~* /people {
|
||||
#rewrite products/people/(.*) /$1 break;
|
||||
proxy_pass http://localhost:5002;
|
||||
proxy_set_header X-REWRITER-URL $X_REWRITER_URL;
|
||||
|
||||
location ~ /sockjs-node {
|
||||
rewrite products/people/(.*) /$1 break;
|
||||
location ~* /sockjs-node {
|
||||
rewrite products/people(.*)/sockjs-node/(.*) /sockjs-node/$2 break;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
|
Loading…
Reference in New Issue
Block a user