2
0
Fork 0

Service and router entry for backend-webrtc
continuous-integration/drone/push Build is passing Details

pull/21/head
Daniel Lim 2019-06-24 22:53:51 +08:00
parent 685552740d
commit 7df967fbec
2 changed files with 28 additions and 1 deletions

View File

@ -12,6 +12,8 @@ services:
- subscribe - subscribe
- transcription - transcription
- auth - auth
- pictures
- webrtc
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"
@ -98,6 +100,15 @@ services:
- redisnet - redisnet
- traefiknet - traefiknet
webrtc:
build: ./backend-webrtc
tty: true
restart: unless-stopped
environment:
- LISTEN=:80
networks:
- traefiknet
login: login:
build: ./backend-login build: ./backend-login
tty: true tty: true
@ -143,7 +154,6 @@ services:
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- minio - minio
- traefik
environment: environment:
- LISTEN=:80 - LISTEN=:80
- MINIO_ENDPOINT=minio:9000 - MINIO_ENDPOINT=minio:9000

View File

@ -163,6 +163,23 @@ entrypoints = ["http", "https"]
[frontends.pictures.routes.one] [frontends.pictures.routes.one]
rule = "PathPrefixStrip: /pictures/" rule = "PathPrefixStrip: /pictures/"
# webrtc
[backends.webrtc]
[backends.webrtc.servers.one]
url = "http://webrtc"
[frontends.webrtc.headers.customresponseheaders]
Access-Control-Allow-Origin = "*"
Access-Control-Allow-Headers = "Content-Type, Authorization, X-User-Claim"
Access-Control-Allow-Credentials = "true"
Access-Control-Allow-Methods = "GET, HEAD, POST, PUT, PATCH, DELETE"
[frontends.webrtc.routes.one]
rule = "PathPrefixStrip: /webrtc/"
[frontends.webrtc]
backend = "webrtc"
entrypoints = ["http", "https"]
# login # login
[backends.login] [backends.login]
[backends.login.servers.one] [backends.login.servers.one]