Comparison

mod_migrate_http_upload/README.markdown @ 4468:5d8f9cc5c6fb

mod_migrate_http_upload: Upload data converter to mod_http_file_share
author Kim Alvefur <zash@zash.se>
date Wed, 24 Feb 2021 16:55:46 +0100
child 4469:6844733ad2f5
comparison
equal deleted inserted replaced
4467:6d595857164a 4468:5d8f9cc5c6fb
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] which will be
10 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 ```