53 lines
1.1 KiB
YAML
53 lines
1.1 KiB
YAML
http:
|
|
routers:
|
|
keycloak:
|
|
entryPoint: https
|
|
service: keycloak
|
|
rules: Domain(`keycloak.z.com`).PathPrefix(`/)
|
|
tls:
|
|
certProvider: default
|
|
# app1:
|
|
# entryPoint: https
|
|
# service: app1
|
|
# rules: Domain(`app1.z.com`).Path(`/`)
|
|
# tls:
|
|
# certProvider: default
|
|
# app2:
|
|
# entryPoint: https
|
|
# service: app2
|
|
# rules: Domain(`app2.z.com`).PathPrefix(`/test/`)
|
|
# tls:
|
|
# certProvider: default
|
|
aaa:
|
|
entryPoint: https
|
|
service: app1
|
|
rules: Domain(`a.z.com`).PathPrefix(`/`)
|
|
|
|
bbb:
|
|
entryPoint: https
|
|
service: app2
|
|
rules: Domain(`a.z.com`).PathPrefix(`/app2/`)
|
|
|
|
# ccc:
|
|
# entryPoint: https
|
|
# service: keycloak
|
|
# rules: Domain(`a.z.com`).PathPrefix(`/`)
|
|
|
|
services:
|
|
keycloak: http://192.168.10.2:8080
|
|
app1: http://192.168.10.2:3001
|
|
app2: http://192.168.10.2:3002
|
|
|
|
entryPoints:
|
|
https:
|
|
address: :443
|
|
tls:
|
|
enabled: true
|
|
http:
|
|
address: :80
|
|
|
|
tls:
|
|
certProviders:
|
|
default:
|
|
key: ./assets/certs/z.com.key.pem
|
|
cert: ./assets/certs/z.com.cert.pem
|