Mercurial > prosody-modules
comparison mod_migrate_http_upload/README.md @ 5975:fe081789f7b5
All community modules: Unify file extention of Markdown files to .md
| author | Menel <menel@snikket.de> |
|---|---|
| date | Tue, 22 Oct 2024 10:26:01 +0200 |
| parents | mod_migrate_http_upload/README.markdown@6844733ad2f5 |
| children |
comparison
equal
deleted
inserted
replaced
| 5974:5a65a632d5b9 | 5975:fe081789f7b5 |
|---|---|
| 1 --- | |
| 2 summary: mod_http_upload to mod_http_file_share migrator | |
| 3 labels: | |
| 4 - Stage-Alpha | |
| 5 --- | |
| 6 | |
| 7 | |
| 8 This is a migration script for converting records of [mod_http_upload] | |
| 9 into the format used by the new [mod_http_file_share][doc:modules:mod_http_file_share] | |
| 10 which will be available with Prosody 0.12 (currently in trunk). | |
| 11 | |
| 12 # Usage | |
| 13 | |
| 14 If your main `VirtualHost` is called "example.com" and your HTTP upload | |
| 15 `Component` is called "upload.example.com", then this command would | |
| 16 convert records of existing uploads via [mod_http_upload] to | |
| 17 [mod_http_file_share][doc:modules:mod_http_file_share]: | |
| 18 | |
| 19 ```bash | |
| 20 sudo prosodyctl mod_migrate_http_upload upload.example.com example.com | |
| 21 ``` | |
| 22 | |
| 23 In order to preserve URLs you will need to configure the | |
| 24 [path][doc:http#path_configuration] to be the same as mod_http_upload: | |
| 25 | |
| 26 ```lua | |
| 27 Component "upload.example.com" "http_file_share" | |
| 28 http_paths = { | |
| 29 file_share = "/upload" | |
| 30 } | |
| 31 ``` |
