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

View File

@ -163,6 +163,23 @@ entrypoints = ["http", "https"]
[frontends.pictures.routes.one]
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
[backends.login]
[backends.login.servers.one]