简体   繁体   中英

How to configure http_upload error for prosody

I am using conversation an android client for xmpp server. I have used prosody for the server and bought a domain to direct the ip. The app is working fine with the text messages, but it is giving me error can't connect to server.

i have tried seperate component for http_upload though i am using 0.10 version which almost does the job by default but still no luck

admins = {  }

plugin_paths = {"/usr/lib/prosody/modules/","/opt/prosody-modules"}

modules_enabled = {

-- Generally required
"roster"; -- Allow users to have a roster. Recommended ;)
"saslauth"; -- Authentication for clients and servers. Recommended if you 
 want to log in.
"tls"; -- Add support for secure TLS on c2s/s2s connections
"dialback"; -- s2s dialback support
"disco"; -- Service discovery
"http_upload";
"http_avatar";

-- Not essential, but recommended
"carbons"; -- Keep multiple clients in sync
"pep"; -- Enables users to publish their avatar, mood, activity, playing music and more
"private"; -- Private XML storage (for room bookmarks, etc.)
"blocklist"; -- Allow users to block communications with other users
"vcard4"; -- User profiles (stored in PEP)
"vcard_legacy"; -- Conversion between legacy vCard and PEP Avatar, vcard

-- Nice to have
"version"; -- Replies to server version requests
"uptime"; -- Report how long server has been running
"time"; -- Let others know the time here on this server
"ping"; -- Replies to XMPP pings with pongs
"register"; -- Allow users to register on this server using a client and change passwords
"mam"; -- Store messages in an archive and allow users to access it

"csi"; -- XEP-0352: Client State Indication (community module)
--"csi_simple"; -- Simple Mobile optimizations


-- HTTP modules
"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
--"websocket"; -- XMPP over WebSockets
"http_files"; -- Serve static files from a directory over HTTP

-- Other specific functionality
--"limits"; -- Enable bandwidth limiting for XMPP connections
--"groups"; -- Shared roster support
--"server_contact_info"; -- Publish contact information for this service
--"announce"; -- Send announcement to all online users
--"welcome"; -- Welcome users who register accounts
--"watchregistrations"; -- Alert admins of registrations
--"motd"; -- Send a message to users when they log in
--"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
 "smacks"; -- XEP-0198: Stream Management to survive small network outages (community module)
"smacks_offline"; -- XEP-0198: Stream Management to survive small network outages (community module)
"carbons"; -- XEP-0280: Message Carbons syncs between desktop and mobile client (community module)
"cloud_notify"; -- XEP-0357: Push Notifications for Play Store version (community module)
"proxy65"; -- Enables a file transfer proxy service which clients behind NAT can use
}

 modules_disabled = {
 -- "offline"; -- Store offline messages
 -- "c2s"; -- Handle client connections
 "s2s"; -- Handle server-to-server connections
 -- "posix"; -- POSIX functionality, sends server to background, enables 
 syslog, etc.
 }

 allow_registration = true

 s2s_require_encryption = true

 s2s_secure_auth = true

 -- Required for init scripts and prosodyctl
 pidfile = "/var/run/prosody/prosody.pid"

 authentication = "internal_hashed"

ssl = {
key = "/var/lib/prosody/instacom.com.key";
certificate = "/var/lib/prosody/instacom.com.crt";
 }


 archive_expires_after = "1w" -- Remove archived messages after 1 week

log = {
info = "/var/log/prosody/prosody.log"; -- Change 'info' to 'debug' for 
verbose logging
error = "/var/log/prosody/prosody.err";
}
certificates = "/var/lib/prosody/instacom.com.crt"



----------- Virtual hosts -----------


VirtualHost "instacom.com"

ssl = {
        key = "/var/lib/prosody/instacom.com.key";
        certificate = "/var/lib/prosody/instacom.com.crt";
 }

Prosody 0.10+ uses http_files module which covers all the http crap. Therefore by removing that http_upload modules, i was able to get through this.

for prosody documentation... https://prosody.im/doc

documentation for prosody Http mod https://modules.prosody.im/ https://modules.prosody.im/mod_http_upload.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM