Closed armor009 closed 1 year ago
They don't work? What are the error messages?
They host data on server. I am planning to use AWS EC2 for running the server. The cost of EBS is high. I am considering using RDS and AWS S3. Can there be support for sending files across http using RDS (Postgres) and S3 as DB.
@badlop hoping to hear back from you.
@armor009: There is now a PR:
cc: @RomanHargrave, @ArtemisPseudo, @licaon-kter.
Thank you
Hey! Wow, I've been sucked into work a lot lately.
I am amenable to adding this to contrib, but I still feel strongly about getting into ejabberd directly. I'll be attending to holiday festivities this coming week, but would be interested in seeing what needs to be done to get this into contrib if it is desired.
I was curious, and did it following https://docs.ejabberd.im/developer/extending-ejabberd/modules/#add-your-module
It just required placing your files in new subdirectories and adding mod_s3_upload.spec. For completeness, I also added README, COPYING and an empty disabled config file. It's here: https://github.com/badlop/ejabberd-contrib/commits/s3_upload_draft
How to try it ?
Compile and install ejabberd
Get the updated ejabberd-contrib source code
ejabberdctl modules_update_specs
Compile and install the module
ejabberdctl module_install mod_s3_upload
Now it's time to configure it in ejabberd.yml or in the provided mod_s3_upload.yml
Finally, restart ejabberd or simply reload the configuration
ejabberdctl reload_config
Right now the tests are not used in the ejabberd-contrib action; I'll check that later.
I was able to compile and install the module. But I didn't test it works correctly.
Once you are able to test it, if it works correctly, you can use the content from this draft to prepare your PR.
@Neustradamus this is now in contrib
@RomanHargrave: Good job, thanks, your PR has been merged!
Linked to:
@RomanHargrave: Your PR in ejabberd has not been closed, it is time, it is now in ejabberd-contrib since 2 months:
@badlop: Several tickets too?
I couldn't get this to work.. has something changed, or more likely I am doing it wrong? I'm not getting any errors, nor are the uploads showing up in my bucket. I've since tried using a python script to grab the upload from mod_http_upload, but that's throwing all sorts of errors.
@Cronoburn better open a new issue with exact OS/ejabberd/config/etc.
Ejabberd mod_http_fileserver and mod_http_upload support for AWS RDS and S3 will greatly enhance usability of ejabberd.