2019-02-20 02:00:59 +08:00
|
|
|
[api]
|
|
|
|
dashboard = true
|
|
|
|
|
2019-06-23 05:39:40 +08:00
|
|
|
[acme]
|
|
|
|
email = "letsencrypt+local@beepvoice.app"
|
|
|
|
caServer = "https://acme-v02.api.letsencrypt.org/directory"
|
|
|
|
acmeLogging = true
|
|
|
|
storage = "acme.json"
|
|
|
|
entryPoint = "https"
|
|
|
|
[acme.dnsChallenge]
|
|
|
|
provider = "digitalocean"
|
|
|
|
delayBeforeCheck = 3
|
|
|
|
|
2019-02-20 02:00:59 +08:00
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.http]
|
|
|
|
address = ":80"
|
2019-02-24 04:03:41 +08:00
|
|
|
[entryPoints.http.auth.forward]
|
2019-03-17 08:14:39 +08:00
|
|
|
address = "http://auth:10205/auth"
|
2019-02-24 04:03:41 +08:00
|
|
|
trustForwardHeader = true
|
|
|
|
authResponseHeaders = [ "X-User-Claim" ]
|
2019-06-23 05:39:40 +08:00
|
|
|
[entryPoints.https]
|
|
|
|
address = ":443"
|
|
|
|
[entryPoints.https.tls]
|
|
|
|
[entryPoints.https.auth.forward]
|
|
|
|
address = "http://auth:10205/auth"
|
|
|
|
trustForwardHeader = true
|
|
|
|
authResponseHeaders = [ "X-User-Claim" ]
|
|
|
|
|
2019-02-24 05:41:49 +08:00
|
|
|
[entryPoints.login]
|
|
|
|
address = ":1837"
|
2019-06-23 05:39:40 +08:00
|
|
|
[entryPoints.login_https]
|
|
|
|
address = ":1838"
|
|
|
|
[entryPoints.login_https.tls]
|
2019-02-20 02:00:59 +08:00
|
|
|
[entryPoints.traefik]
|
|
|
|
address = ":8080"
|
|
|
|
|
|
|
|
[file]
|
|
|
|
# Core
|
|
|
|
[backends.core]
|
|
|
|
[backends.core.servers.one]
|
|
|
|
url = "http://core"
|
|
|
|
|
|
|
|
[frontends.core]
|
|
|
|
backend = "core"
|
|
|
|
entrypoints = ["http", "https"]
|
|
|
|
[frontends.core.headers.customresponseheaders]
|
|
|
|
Access-Control-Allow-Origin = "*"
|
2019-02-24 05:41:49 +08:00
|
|
|
Access-Control-Allow-Headers = "Content-Type, Authorization, X-User-Claim"
|
2019-02-20 02:00:59 +08:00
|
|
|
Access-Control-Allow-Credentials = "true"
|
|
|
|
Access-Control-Allow-Methods = "GET, HEAD, POST, PUT, PATCH, DELETE"
|
|
|
|
[frontends.core.routes.one]
|
2019-03-15 20:53:58 +08:00
|
|
|
rule = "PathPrefixStrip: /core/"
|
2019-02-20 02:00:59 +08:00
|
|
|
|
|
|
|
# Heartbeat
|
|
|
|
[backends.heartbeat]
|
|
|
|
[backends.heartbeat.servers.one]
|
|
|
|
url = "http://heartbeat"
|
|
|
|
|
|
|
|
[frontends.heartbeat]
|
|
|
|
backend = "heartbeat"
|
|
|
|
entrypoints = ["http", "https"]
|
|
|
|
[frontends.heartbeat.headers.customresponseheaders]
|
|
|
|
Access-Control-Allow-Origin = "*"
|
2019-02-24 05:41:49 +08:00
|
|
|
Access-Control-Allow-Headers = "Content-Type, Authorization, X-User-Claim"
|
2019-02-20 02:00:59 +08:00
|
|
|
Access-Control-Allow-Credentials = "true"
|
|
|
|
Access-Control-Allow-Methods = "GET, HEAD, POST, PUT, PATCH, DELETE"
|
|
|
|
[frontends.heartbeat.routes.one]
|
2019-03-15 20:53:58 +08:00
|
|
|
rule = "PathPrefixStrip: /heartbeat/"
|
2019-02-20 02:00:59 +08:00
|
|
|
|
2019-06-20 23:14:44 +08:00
|
|
|
# pictures
|
|
|
|
[backends.pictures]
|
|
|
|
[backends.pictures.servers.one]
|
|
|
|
url = "http://pictures"
|
|
|
|
|
|
|
|
[frontends.pictures]
|
|
|
|
backend = "pictures"
|
|
|
|
entrypoints = ["http", "https"]
|
|
|
|
[frontends.pictures.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.pictures.routes.one]
|
|
|
|
rule = "PathPrefixStrip: /pictures/"
|
|
|
|
|
2019-06-24 22:53:51 +08:00
|
|
|
# webrtc
|
|
|
|
[backends.webrtc]
|
|
|
|
[backends.webrtc.servers.one]
|
|
|
|
url = "http://webrtc"
|
2019-06-30 05:05:44 +08:00
|
|
|
|
|
|
|
[frontends.webrtc]
|
|
|
|
backend = "webrtc"
|
|
|
|
entrypoints = ["http", "https"]
|
2019-06-24 22:53:51 +08:00
|
|
|
[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/"
|
|
|
|
|
2019-06-30 05:05:44 +08:00
|
|
|
# store
|
|
|
|
[backends.store]
|
|
|
|
[backends.store.servers.one]
|
|
|
|
url = "http://store"
|
|
|
|
|
|
|
|
[frontends.store]
|
|
|
|
backend = "store"
|
2019-06-24 22:53:51 +08:00
|
|
|
entrypoints = ["http", "https"]
|
2019-06-30 05:05:44 +08:00
|
|
|
[frontends.store.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.store.routes.one]
|
|
|
|
rule = "PathPrefixStrip: /store/"
|
2019-06-24 22:53:51 +08:00
|
|
|
|
2019-02-24 12:01:18 +08:00
|
|
|
# login
|
|
|
|
[backends.login]
|
|
|
|
[backends.login.servers.one]
|
|
|
|
url = "http://login"
|
|
|
|
|
|
|
|
[frontends.login]
|
|
|
|
backend = "login"
|
|
|
|
entrypoints = ["login", "login_https"]
|
|
|
|
[frontends.login.headers.customresponseheaders]
|
|
|
|
Access-Control-Allow-Origin = "*"
|
|
|
|
Access-Control-Allow-Headers = "Content-Type, Authorization"
|
|
|
|
Access-Control-Allow-Credentials = "true"
|
|
|
|
Access-Control-Allow-Methods = "GET, HEAD, POST, PUT, PATCH, DELETE"
|
|
|
|
[frontends.login.routes.one]
|
2019-03-15 20:53:58 +08:00
|
|
|
rule = "PathPrefixStrip: /"
|