1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/nginx-sso/data/config.yaml

42 lines
996 B
YAML
Raw Normal View History

2019-12-10 14:05:16 +02:00
---
2019-12-11 13:20:07 +02:00
listen:
addr: "0.0.0.0"
port: 8082
2019-12-10 14:05:16 +02:00
login:
title: "yourdomain.com - Login"
default_method: "simple"
hide_mfa_field: true
names:
simple: "Username / Password"
cookie:
domain: ".yourdomain.com"
2019-12-11 13:20:07 +02:00
# To regenerate this key: cat /dev/urandom | tr -dc "A-Za-z0-9" | dd bs=1 count=60 2>/dev/null
2019-12-10 14:05:16 +02:00
authentication_key: "5foFtWocwA3hq0tUztgMqn9xaagqNP1wFqfFyZDHTxhr154iQQ60eDI9z6oDVNHF7B"
audit_log:
targets:
- fd://stdout
2019-12-11 13:20:07 +02:00
- file:///data/audit.jsonl
events: ["access_denied", "login_success", "login_failure", "logout", "validate"]
headers: ["x-origin-uri"]
2019-12-10 14:05:16 +02:00
trusted_ip_headers: ["X-Forwarded-For", "RemoteAddr", "X-Real-IP"]
acl:
rule_sets:
- rules:
2019-12-11 13:20:07 +02:00
- field: "X-Host"
2019-12-10 14:05:16 +02:00
regexp: ".*"
allow: ["@admins"]
providers:
simple:
enable_basic_auth: true
users:
2019-12-11 13:20:07 +02:00
# To generate a new password: htpasswd -nbBC 10 username password
2019-12-10 14:05:16 +02:00
admin: "$2y$10$3aJxJ6ttJNPeky/bCdg1OOVvGU8pLVj9L.U9kN0F0JWLN.nt3b5WO"
groups:
admins: ["admin"]