/etc/init.d/prosody restart
* Restarting Prosody XMPP Server prosody
A problem occured while reading the config file /etc/prosody/prosody.cfg.lua
Error: /etc/prosody/prosody.cfg.lua:2: ‚}‘ expected near ‚@‘
More help on configuring Prosody can be found at http://prosody.im/doc/configure
Good luck!
x@NB-Pepe:/etc/prosody# cat prosody.cfg.lua
Host „localhost“
admins = {cz3dtc@localhost}
modules_enabled = {
„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
„private“; – Private XML storage (for room bookmarks, etc.)
„vcard“; – Allow users to set vCards
„privacy“; – ??
„compression“;
„legacyauth“; – Legacy authentication. Only used by some old clients and bots.
„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
„pep“; – Enables users to publish their mood, activity, playing music and more
„register“; – Allow users to register on this server using a client and change passwords
„groups“;
„announce“;
„welcome“;
„watchregistrations“;
–„console“; – telnet to port 5582 (needs console_enabled = true)
–„bosh“; – Enable BOSH clients, aka „Jabber over HTTP“
–„httpserver“; – Serve static files from a directory over HTTP
– Debian: do not remove this module, or you loose syslog
– support
„posix“; – POSIX functionality, sends server to background, enables syslog, etc.
};
modules_disabled = {
– „presence“;
– „message“;
– „iq“;
};
allow_registration = true;
daemonize = true;
pidfile = „/var/run/prosody/prosody.pid“;
ssl = {
key = „/etc/prosody/certs/localhost.key“;
certificate = „/etc/prosody/certs/localhost.cert“;
}
log = {
{ levels = { „error“ }; to = „syslog“; };
{ levels = { „error“ }; to = „file“; filename = „/var/log/prosody/prosody.err“; };
{ levels = { „info“; „warn“; }; to = „file“; filename = „/var/log/prosody/prosody.log“; };
– { levels = { „debug“; }; to = „file“; filename = „/var/log/prosody/prosody.log“; };
}
VirtualHost „localhost“
enabled = true
ssl = {
key = „/etc/prosody/certs/example.com.key“;
certificate = „/etc/prosody/certs/example.com.crt“;
}
– Load all configuration files in /etc/prosody/conf.d/
local ztact = require „util.ztact“
local cfgdir = „/etc/prosody/conf.d/“
for f in ztact.dir(cfgdir) do Include(cfgdir..f); end
x@NB-Pepe:/etc/prosody#
co mam spatne ?
More help on configuring Prosody can be found at http://prosody.im/doc/configure
admins = { „admin1@example.com“, „admin2@example.com“ }
Že by chybějící uvozovky?