2023-04-26 01:50:34 +00:00
|
|
|
listen_address = "127.0.0.1"
|
|
|
|
listen_port = "3000"
|
2023-05-29 03:48:03 +00:00
|
|
|
url = "http://localhost:3000/"
|
|
|
|
|
|
|
|
[ldap]
|
|
|
|
connection_url = "ldap://localhost:389"
|
|
|
|
bind_dn = "cn=admin,dc=planetexpress,dc=com"
|
|
|
|
bind_password = "GoodNewsEveryone"
|
|
|
|
user_base_dn = "ou=people,dc=planetexpress,dc=com"
|
|
|
|
group_base_dn = "ou=people,dc=planetexpress,dc=com"
|
|
|
|
|
|
|
|
user_search_filter = "(&(objectClass=person)(mail=%s))"
|
|
|
|
group_search_filter = "(&(objectclass=groupOfNames)(member=%d))"
|
|
|
|
|
|
|
|
admin_filter = "(memberOf=cn=admin_staff,ou=people,dc=planetexpress,dc=com)"
|
|
|
|
#login_attribute = "mail"
|
2023-06-12 04:17:50 +00:00
|
|
|
#display_name_attribute = "displayName"
|
|
|
|
|
|
|
|
# Example of static auth
|
|
|
|
|
|
|
|
[[static_auth.users]]
|
|
|
|
name = "admin"
|
|
|
|
password = "$2y$05$lZjROeq55JnpZlvRGJB4qOum6RXN1qgq586jar6W07tvzYRh7Ur1u" # test1234
|
|
|
|
|
|
|
|
[[static_auth.users]]
|
|
|
|
name = "guest"
|
|
|
|
password = "$2y$05$R2Inj/bckhXpi3kjJN0OxeQhSVExQUEhCq2XwzN3NTB4oLw8iNQQO" # guest1234
|
|
|
|
|
|
|
|
[[static_auth.acl]]
|
|
|
|
match = "account=admin"
|
|
|
|
permissions = [ "*" ]
|
|
|
|
|
|
|
|
[[static_auth.acl]]
|
|
|
|
match = "account=guest,repository=public"
|
|
|
|
permissions = [ "pull" ]
|