Closed mkassir95 closed 1 year ago
This is my ejabberd.yml file
hosts:
- localhost
loglevel: info
port: 5222
ip: "::"
module: ejabberd_c2s
#starttls: true
#certfile: "./xmpp_example_com.pem"
- port: 5280 ip: "::" module: ejabberd_http request_handlers: /admin: ejabberd_web_admin
- port: 5281 module: ejabberd_http ip: "::" request_handlers: /api: mod_http_api /oauth: ejabberd_oauth
- port: 5443 module: ejabberd_http request_handlers: /upload: mod_http_upload
- port: 5347 ip: "::" module: ejabberd_service hosts: "mymuc.domain.tld": password: "mysecret"
acl: exampleorg: server: localhost
api_permissions: "admin api permsions": from:
modules: mod_admin_extra: {} mod_muc: access:
allow default_room_options: allow_subscription: true # enable MucSub allow_private_messages: true allow_user_invites: true mam: true persistent: true mod_muc_admin: {} mod_push_keepalive: wake_on_start: true mod_offline: {} mod_push: {} mod_http_upload: docroot: /ejabberd/upload put_url: "http://localhost:5443/upload"
These are my ejabberd logs
OS/ejabberd version/gist of the config?
The template is not there for you to delete...
I am sorry, I updated these information and I will use the template the next time
Windows 10 means you run ejabberd on Windows via WSL or?
stat -u ejabberd /ejabberd/upload
says what? replace ejabberd
with your actual user that is used to run ejabberd
I am run ejabberd using docker compose docker-compose up
This my docker-compose.yml file
version: '3.7'
services:
main: image: ejabberd/ecs container_name: ejabberd environment:
and this my ejabberd.yml file
hosts:
- localhost
loglevel: info
port: 5222
ip: "::"
module: ejabberd_c2s
#starttls: true
#certfile: "./xmpp_example_com.pem"
- port: 5280 ip: "::" module: ejabberd_http request_handlers: /admin: ejabberd_web_admin
- port: 5281 module: ejabberd_http ip: "::" request_handlers: /api: mod_http_api /oauth: ejabberd_oauth
- port: 5443 module: ejabberd_http request_handlers: /upload: mod_http_upload
- port: 5347 ip: "::" module: ejabberd_service hosts: "mymuc.domain.tld": password: "mysecret"
acl: exampleorg: server: localhost
api_permissions: "admin api permsions": from:
modules: mod_admin_extra: {} mod_muc: access:
allow default_room_options: allow_subscription: true # enable MucSub allow_private_messages: true allow_user_invites: true mam: true persistent: true mod_muc_admin: {} mod_push_keepalive: wake_on_start: true mod_offline: {} mod_push: {} mod_http_upload: docroot: /ejabberd/upload put_url: "https://@HOST@:5443/upload"
The upload folder is empty
So it's /ejabberd/upload
like in the .yml config or ~/upload
like in your picture?
like in the picture
Umm, your config .yml says docroot: /ejabberd/upload
which in NOT the same folder, right?
the path in my should be like this docroot: /home/ejabberd/upload,
true?
I changed the log level to debug
and I got these logs
I think the problem is in the put request 's paramtersm, but I did figured out what paramters I should send
Can you test with a proper client too, eg. Dino or Gajim, Siskin or Monal, Conversations?
Hello, I am using
ejabberd version 22.10
, operating systemwindows 10
I need to usemod_http_upload
, but I am getting this error