From 1fb8e60c45c33a775406cea277e98f689d2d7f57 Mon Sep 17 00:00:00 2001 From: Adam Stück Date: Thu, 11 Jan 2024 16:03:25 +0100 Subject: prosody: fix typos See https://prosody.im/doc/modules/mod_http_file_share#larger-files --- content/prosody.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/prosody.md b/content/prosody.md index 94fb548..44e2f68 100644 --- a/content/prosody.md +++ b/content/prosody.md @@ -107,7 +107,7 @@ This helps with file transfers for devices behind a NAT, and unless you are usin Enable the proxy by adding the following line to the config: ```cfg -Component " {{}}proxy.example.org{{}}" "proxy65" +Component "{{}}proxy.example.org{{}}" "proxy65" ``` As you can see, another subdomain is needed. We will add ssl certificates for this later. @@ -117,7 +117,7 @@ At this point, file sharing is now setup and ready to be used. Although there ar A big concern with file sharing is large files, seeing as all files shared over XMPP will be stored on your server. This can become a problem when many (and large) files are being shared. We can put a cap on large files by adding the following line to our config: ```cfg -http_file_share_file_size_limit = 20971520 +http_file_share_size_limit = 20971520 ``` This puts a 20MB cap on all files being shared. The value is specified in bytes. You can also specify after how long files should be deleted by adding the following line: -- cgit v1.2.3 From 23f873fc6fa5f54001934fbec64b13d6ad3920b1 Mon Sep 17 00:00:00 2001 From: Adam Stück Date: Thu, 11 Jan 2024 16:07:34 +0100 Subject: prosody: update packages dependencies mod_http_file_share[1] is included in the core modules now so drop reference to prosody-modules. lua-dbi-postgresql is required for postgresql storage backend.[2] 1: https://prosody.im/doc/modules/mod_http_file_share 2: https://prosody.im/doc/depends#luadbi --- content/prosody.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/content/prosody.md b/content/prosody.md index 44e2f68..df18ad3 100644 --- a/content/prosody.md +++ b/content/prosody.md @@ -87,13 +87,7 @@ With this we can bring XMPP to the level of other popular instant messaging appl It is extremely easy to setup. This part is optional, but it can make XMPP more normie-friendly if you plan on moving family members and friends over to XMPP. -First we need to install extra prosody modules. Run the following command: - -```sh -apt install prosody-modules -``` - -Then we can add the following line to you prosody config file to enable file uploads: +Add the following line to your prosody config file to enable file uploads: ```cfg Component "{{}}uploads.example.org{{}}" "http_file_share" @@ -134,7 +128,7 @@ Prosody includes the `internal` and `sql` storage backends by default. If you wish to run Prosody with PostgreSQL, begin by installing the PostgreSQL: ```sh -apt install postgresql +apt install postgresql lua-dbi-postgresql ``` Then start the daemon: -- cgit v1.2.3