Service and router entry for backend-webrtc
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
685552740d
commit
7df967fbec
|
@ -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
|
||||
|
|
17
traefik.toml
17
traefik.toml
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue