Mercurial > prosody-modules
comparison mod_http_upload/README.markdown @ 3968:bf5d91769f99
Merge commit
author | tmolitor <thilo@eightysoft.de> |
---|---|
date | Sun, 05 Apr 2020 23:39:08 +0200 |
parents | acd231e2b46f |
children | 268fa9d45840 |
comparison
equal
deleted
inserted
replaced
3967:0957ba6aeb99 | 3968:bf5d91769f99 |
---|---|
21 ``` {.lua} | 21 ``` {.lua} |
22 Component "upload.example.org" "http_upload" | 22 Component "upload.example.org" "http_upload" |
23 ``` | 23 ``` |
24 | 24 |
25 It should **not** be added to modules_enabled. | 25 It should **not** be added to modules_enabled. |
26 | |
27 ## Discoverability | |
28 | |
29 Prosody makes subdomains of your VirtualHosts easily discoverable by | |
30 clients. To make the component discoverable by other hosts, use | |
31 [`disco_items`][doc:modules:mod_disco#configuration]. | |
32 | |
33 ``` {.lua} | |
34 VirtualHost "foo.example.org" | |
35 disco_items = { | |
36 { "upload.example.com" }, | |
37 } | |
38 ``` | |
26 | 39 |
27 Limits | 40 Limits |
28 ------ | 41 ------ |
29 | 42 |
30 ### Max size | 43 ### Max size |
52 Expired files are deleted when a new upload slot is requested, | 65 Expired files are deleted when a new upload slot is requested, |
53 | 66 |
54 A command exists to invoke expiry: | 67 A command exists to invoke expiry: |
55 | 68 |
56 ``` | 69 ``` |
57 prosodyctl mod_http_upload expire [optional list of users] | 70 prosodyctl mod_http_upload expire [list of users or hosts] |
58 ``` | 71 ``` |
59 | 72 |
60 ### User quota | 73 ### User quota |
61 | 74 |
62 A total maximum size of all uploaded files per user can be set by: | 75 A total maximum size of all uploaded files per user can be set by: |