[ejabberd] how to reverse proxy mod_http_upload with nginx?
pitchum at gramaton.org
Fri Oct 27 15:32:21 MSK 2017
I would like to use port 443 for HTTP uploads in order to traverse
firewalls. The problem is that I'm running nginx on the same machine and
it is already listening on port 443.
I want to set up nginx as a reverse proxy in front of mod_http_upload
but I couldn't find how to configure ejabberd so that it listens on a
given URL while transmitting another URL to the client.
I tried to play with 'service_url' option but according to the
documentation  it is supposed to point to a "smart" service, not just
a reverse proxy.
I was expecting an option like 'external_url' for prosody  and then
configuring mod_http_upload like the following:
'put_url' would be served by ejabberd while 'external_url' would be
served by nginx and sent to the client as the upload slot to use.
Is there a way to achieve this?
More information about the ejabberd