-
Notifications
You must be signed in to change notification settings - Fork 0
/
shupdofi-config-sample.toml
87 lines (77 loc) · 2.31 KB
/
shupdofi-config-sample.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[server]
www_root = "/application_directory/www/"
listen_address = "127.0.0.1"
listen_port = 8080
# log_file
# tmp_root
[application]
# "http_header" is the only auth method available for now
authentications = [ "http_header" ]
[authentications.http_header]
header_login = "x-remote-user"
# define an area with id = area1
[areas.area1]
name = "Area 1"
description = "This is the area 1"
root = "/root_directory_for_area1/"
# maximum total size for this area
# units can be empty (for size in bytes), KB, MB, GB, TB or PB
# quota = "1GB"
# define an area with id = area2
[areas.area2]
name = "Area 2"
description = "This is the area 2"
root = "/root_directory_for_area2/"
# quota = ""
# define a group with id = group1
[groups.group1]
name = "Group 1"
description = "This is group 1"
# define a group with id = group2
[groups.group2]
name = "Group 2"
description = "This is group 2"
# define an user with id = user1
[users.user1]
# /!\ for http_header authentication method,
# this login must be the same than the one defined by the http server
login = "loguser1"
name = "User 1"
# this user belongs to group1
groups = [ "group1" ]
# define an user with id = user2
[users.user2]
# /!\ for http_header authentication method,
# this login must be the same than the one defined by the http server
login = "loguser2"
name = "User 2"
# this user belongs to no group
groups = []
# by default, acess is denied so you have to explicitly add access rights.
#
# define access rights for area1
[areas_accesses.area1]
# for users
rights.users.download = [ "user1", "user2" ]
rights.users.upload = [ "user1" ]
rights.users.rename = [ "user1" ]
rights.users.delete = [ "user1" ]
rights.users.create_directory = [ "user1" ]
# for groups
rights.groups.download = [ "group1" ]
rights.groups.upload = [ "group1" ]
rights.groups.rename = [ "group1" ]
rights.groups.delete = [ "group1" ]
rights.groups.create_directory = [ "group1" ]
# define access rights for area2
[areas_accesses.area2]
# wildcards * and % can be used in user/group id
# users with login starting with "abc" can upload files
rights.users.upload = [ "abc%" ]
# all users can download
rights.users.download = [ "*" ]
# wildcards * can be used for right id
# users of group2 have all rights
rights.groups."*" = [ "group2" ]
# rights cannot be empty
# this is not allowed: rights.groups.delete = []