@samitouri / QOSami-HFS / commits / 07f1c628

doc: some config entries were missing

Massimo Melina committed Apr 12, 2024 at 14:34 UTC 07f1c62844a8895935d0a4b1c46c88700d727aff
1 file changed +6 -1
config.md
+6 -1
@@ -123,12 +123,15 @@ Valid keys in a node are:
123 Use this to change the name of entries that are read from the source, not listed in the VFS.
124 Value is a dictionary, where the key is the original name.
125 - `mime`: specify what mime to use for this resource. Use "auto" for automatic detection.
126 +- `url`: when this value is present, the element is a link to the URL you specify.
127 +- `accept`: valid only on upload folders, used to restrict the type of files you can upload. E.g. `.zip,.rar`
128 - `default`: to be used with a folder where you want to serve a default html. E.g.: "index.html". Using this will make `mime` default to "auto".
129 - `can_read`: specify who can download this entry. Value is a `WhoCan` descriptor, which is one of these values
130 - `true`: anyone can, even people who didn't log in. This is normally the default value.
131 - `false`: no one can.
132 - `"*"`: any account can, i.e. anyone who logged in.
133 - `[ frank, peter ]`: the list of accounts who can.
134 + - `can_SOMETHING`: copy the permission from another permission. This is convenient to have same value for different permissions. E.g. `can_see`
135 - `{ this?: WhoCan, children?: WhoCan }`: this form is useful only for folders. By using it, you can have
136 different permission for the folder itself and its children. For example, having only the `this` property
137 will make the permission limited to the folder and not be inherited by children. Otherwise, having only
@@ -136,8 +139,10 @@ Valid keys in a node are:
139 - `this` specifies permission for this folder
140 - `children` specifies permission for the content.
141 - `can_see`: specify who can see this element. Even if a user can download you can still make the file not appear in the list.
139 - Value is a `WhoCan` descriptor, refer above.
142 + Value is a `WhoCan` descriptor, refer above. Default is `can_read`.
143 - `can_upload`: specify who can upload. Applies to folders with a source. Default is none.
144 +- `can_list`: specify who can see the content of a folder. Default is `can_read`.
145 +- `can_archive`: specify who can get the zip a folder or a set of files. Default is `can_read`.
146 - `can_delete`: specify who can delete. Applies to folders with a source. Default is none.
147 - `masks`: maps a file mask to a set of properties as the one documented in this section. E.g.
148 ```