|
|
@@ -40,24 +40,6 @@ proxy:
|
|
40
|
40
|
jwt:
|
|
41
|
41
|
key: ""
|
|
42
|
42
|
expire-duration: 360000
|
|
43
|
|
-redis:
|
|
44
|
|
- addr: "127.0.0.1:6379"
|
|
45
|
|
- password: ""
|
|
46
|
|
- db: 0
|
|
47
|
|
-cache:
|
|
48
|
|
- type: "file"
|
|
49
|
|
- file-dir: "./runtime/cache"
|
|
50
|
|
- redis-addr: "127.0.0.1:6379"
|
|
51
|
|
- redis-pwd: ""
|
|
52
|
|
- redis-db: 0
|
|
53
|
|
-oss:
|
|
54
|
|
- access-key-id: ""
|
|
55
|
|
- access-key-secret: ""
|
|
56
|
|
- host: ""
|
|
57
|
|
- callback-url: ""
|
|
58
|
|
- expire-time: 30
|
|
59
|
|
- max-byte: 10240
|
|
60
|
|
-
|
|
61
|
43
|
ldap:
|
|
62
|
44
|
enable: false
|
|
63
|
45
|
url: "ldap://ldap.example.com:389"
|
|
|
@@ -70,7 +52,7 @@ ldap:
|
|
70
|
52
|
user:
|
|
71
|
53
|
base-dn: "ou=users,dc=example,dc=com"
|
|
72
|
54
|
enable-attr: "" #The attribute name of the user for enabling, in AD it is "userAccountControl", empty means no enable attribute, all users are enabled
|
|
73
|
|
- enable-attr-value: "" # The value of the enable attribute when the user is enabled. If you are using AD, just set random value, it will be ignored.
|
|
|
55
|
+ enable-attr-value: "" # The value of the enable attribute when the user is enabled. If you are using AD, just set random value, it will be ignored.
|
|
74
|
56
|
filter: "(cn=*)"
|
|
75
|
57
|
username: "uid" # The attribute name of the user for usernamem if you are using AD, it should be "sAMAccountName"
|
|
76
|
58
|
email: "mail"
|
|
|
@@ -78,3 +60,22 @@ ldap:
|
|
78
|
60
|
last-name: "sn"
|
|
79
|
61
|
sync: false # If true, the user will be synchronized to the database when the user logs in. If false, the user will be synchronized to the database when the user be created.
|
|
80
|
62
|
admin-group: "cn=admin,dc=example,dc=com" # The group name of the admin group, if the user is in this group, the user will be an admin.
|
|
|
63
|
+
|
|
|
64
|
+redis:
|
|
|
65
|
+ addr: "127.0.0.1:6379"
|
|
|
66
|
+ password: ""
|
|
|
67
|
+ db: 0
|
|
|
68
|
+cache:
|
|
|
69
|
+ type: "file"
|
|
|
70
|
+ file-dir: "./runtime/cache"
|
|
|
71
|
+ redis-addr: "127.0.0.1:6379"
|
|
|
72
|
+ redis-pwd: ""
|
|
|
73
|
+ redis-db: 0
|
|
|
74
|
+oss:
|
|
|
75
|
+ access-key-id: ""
|
|
|
76
|
+ access-key-secret: ""
|
|
|
77
|
+ host: ""
|
|
|
78
|
+ callback-url: ""
|
|
|
79
|
+ expire-time: 30
|
|
|
80
|
+ max-byte: 10240
|
|
|
81
|
+
|