Merge pull request #3283 from element-hq/fkwp/docker_compose_allow_local_lk_service
Add nginx upstream group of servers for JWT Service
This commit is contained in:
@@ -43,6 +43,11 @@ server {
|
|||||||
# MatrixRTC reverse proxy
|
# MatrixRTC reverse proxy
|
||||||
# - MatrixRTC Authorization Service
|
# - MatrixRTC Authorization Service
|
||||||
# - LiveKit SFU websocket signaling connection
|
# - LiveKit SFU websocket signaling connection
|
||||||
|
upstream jwt-auth-services {
|
||||||
|
server auth-server:6080;
|
||||||
|
server host.docker.internal:6080;
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
@@ -62,8 +67,9 @@ server {
|
|||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
# JWT Service running at port 8080
|
# JWT Service running at port 6080
|
||||||
proxy_pass http://auth-server:8080/;
|
proxy_pass http://jwt-auth-services/;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /livekit/sfu/ {
|
location ^~ /livekit/sfu/ {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ services:
|
|||||||
image: ghcr.io/element-hq/lk-jwt-service:latest-ci
|
image: ghcr.io/element-hq/lk-jwt-service:latest-ci
|
||||||
hostname: auth-server
|
hostname: auth-server
|
||||||
environment:
|
environment:
|
||||||
- LIVEKIT_JWT_PORT=8080
|
- LIVEKIT_JWT_PORT=6080
|
||||||
- LIVEKIT_URL=wss://matrix-rtc.m.localhost/livekit/sfu
|
- LIVEKIT_URL=wss://matrix-rtc.m.localhost/livekit/sfu
|
||||||
- LIVEKIT_KEY=devkey
|
- LIVEKIT_KEY=devkey
|
||||||
- LIVEKIT_SECRET=secret
|
- LIVEKIT_SECRET=secret
|
||||||
@@ -18,7 +18,7 @@ services:
|
|||||||
condition: on-failure
|
condition: on-failure
|
||||||
ports:
|
ports:
|
||||||
# HOST_PORT:CONTAINER_PORT
|
# HOST_PORT:CONTAINER_PORT
|
||||||
- 8080:8080
|
- 6080:6080
|
||||||
networks:
|
networks:
|
||||||
- ecbackend
|
- ecbackend
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user