#732 mod_http_upload: Allow PUT URL to be different from GET URL
Reporter
Link Mauve
Owner
Nobody
Created
Updated
Stars
★ (1)
Tags
Type-Enhancement
Status-WontFix
Priority-Medium
Link Mauve
on
Description of feature:
When using mod_http_upload in front of a reverse proxy, it makes a lot of sense to let said proxy serve the files directly to downloading users, while uploads are passed to Prosody. Having the possibility to configure a different URL to be returned in the GET and in the PUT fields of a slot makes that trivial.
In the end I let Prosody use its default configuration, and used mt’s suggestion of making nginx proxy only ¬GET requests to Prosody, so I’m happy despite the WontFix. :)
Description of feature: When using mod_http_upload in front of a reverse proxy, it makes a lot of sense to let said proxy serve the files directly to downloading users, while uploads are passed to Prosody. Having the possibility to configure a different URL to be returned in the GET and in the PUT fields of a slot makes that trivial.
In the meantime you could use something like this [1] if you use nginx, don't know if apache has something like this as well. [1]: https://github.com/siacs/HttpUploadComponent/blob/master/contrib/nginx_site_example
I'm not going to do this.
ChangesIn the end I let Prosody use its default configuration, and used mt’s suggestion of making nginx proxy only ¬GET requests to Prosody, so I’m happy despite the WontFix. :)