Skip to content

Commit 6e0eee3

Browse files
authored
Merge pull request #3283 from element-hq/fkwp/docker_compose_allow_local_lk_service
Add nginx upstream group of servers for JWT Service
2 parents 8718605 + 16aa4ae commit 6e0eee3

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

backend/dev_nginx.conf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ server {
4343
# MatrixRTC reverse proxy
4444
# - MatrixRTC Authorization Service
4545
# - LiveKit SFU websocket signaling connection
46+
upstream jwt-auth-services {
47+
server auth-server:6080;
48+
server host.docker.internal:6080;
49+
}
50+
4651
server {
4752
listen 80;
4853
listen [::]:80;
@@ -62,8 +67,9 @@ server {
6267
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
6368
proxy_set_header X-Forwarded-Proto $scheme;
6469

65-
# JWT Service running at port 8080
66-
proxy_pass http://auth-server:8080/;
70+
# JWT Service running at port 6080
71+
proxy_pass http://jwt-auth-services/;
72+
6773
}
6874

6975
location ^~ /livekit/sfu/ {

dev-backend-docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
image: ghcr.io/element-hq/lk-jwt-service:latest-ci
77
hostname: auth-server
88
environment:
9-
- LIVEKIT_JWT_PORT=8080
9+
- LIVEKIT_JWT_PORT=6080
1010
- LIVEKIT_URL=wss://matrix-rtc.m.localhost/livekit/sfu
1111
- LIVEKIT_KEY=devkey
1212
- LIVEKIT_SECRET=secret
@@ -18,7 +18,7 @@ services:
1818
condition: on-failure
1919
ports:
2020
# HOST_PORT:CONTAINER_PORT
21-
- 8080:8080
21+
- 6080:6080
2222
networks:
2323
- ecbackend
2424

0 commit comments

Comments
 (0)