Конфигурация сервера аутентификации
Для редактирования конфигурационного файла выполните команду:
sudo nano /etc/echelon/komrad/pauth-server.yaml
### schema: komrad/pauth-server/4.1.33
ID: d1cf1e94-2e56-4223-a683-caa8b2e17d88
apidocs: http://127.0.0.1:2020/swagger/apidocs.swagger.json
database: postgres://postgres@127.0.0.1:5432/pauth-preferences?sslmode=disable
grpcserver: "127.0.0.1:2021"
grpcservercrypt: tls
grpcserverca: /var/lib/echelon/komrad/certs/ca.pem
grpcservercert: /var/lib/echelon/komrad/certs/server.pem
grpcserverkey: /var/lib/echelon/komrad/certs/server-key.pem
httpserver: "127.0.0.1:2020"
swaggerurl: "127.0.0.1:2023"
SessionTTL: 24h
Roles:
- user
- admin
DefaultRole: user
RootPassword: non-secure
MinPasswordEntropyBits: 70
Rules:
user:
- /app/.*
- /api/.*
- /pauth_server.user.v1.UserService/.*
- /api/connection/websocket
admin:
- /.*
- /api/connection/websocket
- /api/user/service
AuthProviders:
- kind: internal
priority: 10
enabled: true
log:
- filename: systemd/journal
format: json
filter: ""
levels:
- info
- error
- panic
- fatal
- warn