Skip to content

Commit

Permalink
add chat service to api gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
guowei42 committed Nov 10, 2024
1 parent c582b1c commit 43ba623
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api-gateway/api.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}

location /chat {
proxy_pass http://chat_service/chat;
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 X-Forwarded-Proto $scheme;
}

location /collaboration {
proxy_pass http://collab_service/;

Expand Down
4 changes: 4 additions & 0 deletions api-gateway/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ http {
upstream ai_service {
server ai-service:3005;
}

upstream chat_service {
server chat-service:3006;
}

include /etc/nginx/conf.d/api.conf;
}

0 comments on commit 43ba623

Please sign in to comment.