Skip to content

Commit

Permalink
add bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed Aug 27, 2024
1 parent d4d6e16 commit 8914b75
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "peerly"]
path = peerly
url = https://github.com/squi-ddy/peerly
[submodule "bridge"]
path = bridge
url = https://github.com/squi-ddy/bridge
1 change: 1 addition & 0 deletions bridge
Submodule bridge added at 5598a4
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
include:
- peerly/docker-compose.ci.yml
- bridge/docker-compose.ci.yml

services:
website-backend:
build: ./backend
Expand All @@ -20,6 +24,3 @@ services:
- website-frontend
- peerly-backend
- peerly-frontend

include:
- peerly/docker-compose.ci.yml
9 changes: 9 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ server {
location /peerly/ {
proxy_pass http://peerly-frontend:3000/;
}
location /bridge/ {
proxy_pass http://bridge-frontend:3000/;
}
location / {
proxy_pass http://website-frontend:3000/;
}
Expand All @@ -19,6 +22,12 @@ server {
location /peerly/ {
proxy_pass http://peerly-backend:3001/;
}
location /bridge/ {
proxy_pass http://bridge-backend:3000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location / {
proxy_pass http://website-backend:3000/;
}
Expand Down

0 comments on commit 8914b75

Please sign in to comment.