Correction d’une coquille dans la configuration : si le http_upload est activé dans les modules, il est activé par défaut sur tous les vhosts prosody, y compris le https (5281). Du coup Conversations détecte que le http_upload est activé pour un host en https et donc le privilégie par rapport au hôte http qui est configuré (!). Seul moyen de s’en sortir : désactivé complètement le http_upload dans les modules et bourrer le reste.
This commit is contained in:
@@ -63,7 +63,7 @@ modules_enabled = {
|
|||||||
|
|
||||||
-- HTTP modules
|
-- HTTP modules
|
||||||
"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
|
"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
|
||||||
"http_upload"; -- Enable HTTP upload XEP-0353
|
-- "http_upload"; -- Enable HTTP upload XEP-0353
|
||||||
--"http_files"; -- Serve static files from a directory over HTTP
|
--"http_files"; -- Serve static files from a directory over HTTP
|
||||||
|
|
||||||
-- Other specific functionality
|
-- Other specific functionality
|
||||||
@@ -221,7 +221,8 @@ muc_room_default_public_jids = true
|
|||||||
-- component_secret = "password"
|
-- component_secret = "password"
|
||||||
|
|
||||||
Component "upload.libertus.eu" "http_upload"
|
Component "upload.libertus.eu" "http_upload"
|
||||||
http_external_url = "https://upload.libertus.eu"
|
http_host = "upload.libertus.eu"
|
||||||
|
http_external_url = "https://upload.libertus.eu/"
|
||||||
http_upload_file_size_limit = 10 * 1024 * 1024
|
http_upload_file_size_limit = 10 * 1024 * 1024
|
||||||
http_upload_expire_after = 60 * 60 * 24 * 7
|
http_upload_expire_after = 60 * 60 * 24 * 7
|
||||||
http_upload_allowed_file_types = { "image/*", "text/plain" }
|
http_upload_allowed_file_types = { "image/*", "text/plain" }
|
||||||
|
Reference in New Issue
Block a user