Data and configuration related to XMPP file-upload not working, for debugging purposes
 
 
 
Go to file
Y f6bf871e75 applied patch from Prosody issue #1044 2018-03-25 22:06:56 +02:00
README.adoc initial configuration 2018-03-25 18:59:31 +02:00
haproxy.cfg initial configuration 2018-03-25 18:59:31 +02:00
journal.log new nginx configuration 2018-03-25 21:42:24 +02:00
nftables.conf initial configuration 2018-03-25 18:59:31 +02:00
nginx.conf new nginx configuration 2018-03-25 21:42:24 +02:00
prosody.cfg.lua new prosody configuration 2018-03-25 20:37:40 +02:00
prosodyctl_about.out prosodyctl about 2018-03-25 19:24:22 +02:00
ssowat.json initial configuration 2018-03-25 18:59:31 +02:00
telnet.out applied patch from Prosody issue #1044 2018-03-25 22:06:56 +02:00

README.adoc

= XMPP file-upload not working.

== Problem

When I want to upload a photo to a group-chat using Gajim, I can see on the server that a directory is created to receive the image, but the image never gets there.
Thus, Gajim reports an empty file (actually a 404 error, according to Nginx).

== Configuration

My PC (XMPP client) runs Gajim on Archlinux.
The PC has IP 192.168.1.99.

The server runs Archlinux too.
Here is the network setup:

[ditaa]
-------
        +-----------------------------------------------------------------+
        | Server                                                          |
        |  +-----------+  +----------------+  +-------------------------+ |
+----+  |  | nftables  |  | haproxy (tcp)  |  |  nginx : /…/https+.pp   | |
| PC +->+->+ :443 dnat +->+ :444 tls_plus  +->+   ↓                     | |
+--+-+  |  | → :444 OK |  | → /…/https+.pp |  | /---------------------\ | |
   |    |  +-----------+  +----------------+  | |       ssowat        | | |
   |    |                                     | | "/x…": pass-through | | |
   |    |  +---------------+                  | \---------------------/ | |
   |    |  |    prosody    |                  |   ↓                     | |
   \--->+->+ :5222   :5280 +<-----------------+  location /xmpp- { … }  | |
        |  +---------------+                  +-------------------------+ |
        |                                                                 |
        +-----------------------------------------------------------------+
-------

== Versions

PC::
    * Archlinux kernel 4.15.11
    * Gajim 1.0.0
    * Gajim plugin httpupload 0.4.6

Server::
    * Archlinux kernel 4.15.11
    * nftables 0.8.3
    * haproxy 1.8.4
    * nginx 1.13.10
    * ssowat-git (my fork)
    * prosody 0.10.0
    * prosody-mod-auth-external-hg r2944.37ec4c2f319a
    * prosody-mod-auto-accept-subscriptions-hg r2944.37ec4c2f319a
    * prosody-mod-csi-hg r2944.37ec4c2f319a
    * prosody-mod-filter-chatstates-hg r2944.37ec4c2f319a
    * prosody-mod-http-upload r2944.37ec4c2f319a
    * prosody-mod-mam-adhoc 0.10.0
    * prosody-mod-offline-email-hg r2944.37ec4c2f319a
    * prosody-mod-smacks 2017.08.27
    * prosody-mod-throttle_presence r2944.37ec4c2f319a