yt-cli/example.yml

89 lines
2.4 KiB
YAML

#functions:
# - domain: yt.com
# paths:
# - path: /path/for/route
# methods:
# get: test.calcGet
# post: test.calcPost
# put: test.calcPut
# - path: /path/for/route2
# methods:
# get: test.convertGet
# post: test.convertPost
# put: test.convertPut
#proxy:
# - domain: yt.com
# paths:
# - path: /path/for/route
# redirect: domain.ltd/path/to/route
# - path: /path/for/route2
# redirect: domain.ltd/path/to/route2
# - domain: yt2.com
# paths:
# - path: /path/for/route
# redirect: domain.ltd/path/to/route
#static:
# - domain: yt.com
# paths:
# - path: /
# files:
# - test/index.html
# - test/styles/style.css
# - path: /dir
# dirs:
# - lib
# - structs
token:
- domain: yt.com
paths:
- /
#security:
# uri: "localhost/sec/app"
# redirect: "localhost/sec"
# func: "test.sec_auth"
# rbac:
# roles:
# - name: SEC_ADMIN
# display: Администратор безопасности
# - name: APP_ADMIN
# display: Администратор приложения
# description: Роль применяется для администраторов приложения
# groups:
# - name: APP_ADMIN
# display: Администратор приложения
# roles:
# - name: APP_ADMIN
# - name: SEC_ADMIN
# roles:
# - name: SEC_ADMIN
# - name: APP_ADMIN
# access: deny
# display: Администратор безопасности
# description: Группа применяется для администраторов безопасности
# users:
# - login: app_admin
# password: app_admin
# email: test1@example.com
# roles:
# - name: APP_ADMIN
# - login: sec_admin
# password: sec_admin
# email: test2@example.com
# groups:
# - name: SEC_ADMIN
#params:
# - name: gateway.s3.endpoint
# value: "10.8.0.11:9900"
# - name: gateway.s3.accessKeyID
# value: "8yWig4ztLJhwETbe"
# - name: gateway.s3.secretAccessKey
# value: "j9iWGuuoBNMi14TmmdoglRBE1itn1JFx"
# - name: gateway.s3.bucket
# value: "yt-gateway"
# - name: gateway.s3.useSSL
# value: "false"
# - name: security.pwd.power
# value: "10"
# - name: security.pwd.jwt.secret
# value: "secret"