43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
# http routing section
|
|
http:
|
|
routers:
|
|
# Define a connection between requests and services
|
|
"to-kasm-main":
|
|
rule: "Host(`k.szk.li`)"
|
|
entrypoints:
|
|
- websecure
|
|
# # If the rule matches, applies the middleware
|
|
middlewares:
|
|
- authentik_sysmgr
|
|
# - test-user
|
|
# If the rule matches, forward to the whoami service (declared below)
|
|
service: kasm-main
|
|
tls:
|
|
certresolver: myresolver
|
|
|
|
# Define a connection between requests and services
|
|
"to-kasm-setup":
|
|
rule: "Host(`ksetup.szk.li`)"
|
|
entrypoints:
|
|
- websecure
|
|
# # If the rule matches, applies the middleware
|
|
middlewares:
|
|
- authentik_sysmgr
|
|
# - test-user
|
|
# If the rule matches, forward to the whoami service (declared below)
|
|
service: kasm-setup
|
|
tls:
|
|
certresolver: myresolver
|
|
|
|
|
|
services:
|
|
# Define how to reach an existing service on our infrastructure
|
|
kasm-main:
|
|
loadBalancer:
|
|
servers:
|
|
- url: "https://kasm-workspaces:8744"
|
|
kasm-setup:
|
|
loadBalancer:
|
|
servers:
|
|
- url: "https://kasm-workspaces:8743"
|