Compare commits
4 commits
2405304ffd
...
da93c0fdab
Author | SHA1 | Date | |
---|---|---|---|
da93c0fdab | |||
21dd9ed725 | |||
14327233b9 | |||
b82a4941d8 |
2 changed files with 33 additions and 16 deletions
|
@ -11,6 +11,10 @@ VirtualHost "jabber.n39.eu"
|
||||||
--- Store MUC messages in an archive and allow users to access it
|
--- Store MUC messages in an archive and allow users to access it
|
||||||
--modules_enabled = { "muc_mam" }
|
--modules_enabled = { "muc_mam" }
|
||||||
Component "conference.jabber.n39.eu" "muc"
|
Component "conference.jabber.n39.eu" "muc"
|
||||||
|
modules_enabled = {
|
||||||
|
"muc_mam";
|
||||||
|
-- "vcard_muc";
|
||||||
|
}
|
||||||
|
|
||||||
-- alex: service discovery
|
-- alex: service discovery
|
||||||
disco_items = {
|
disco_items = {
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
-- When running in Docker do not daemonize (for nice shutdown, logging etc.)
|
|
||||||
daemonize = false;
|
|
||||||
|
|
||||||
-- Prosody XMPP Server Configuration
|
-- Prosody XMPP Server Configuration
|
||||||
--
|
--
|
||||||
-- Information on configuring Prosody can be found on our
|
-- Information on configuring Prosody can be found on our
|
||||||
|
@ -25,14 +22,10 @@ daemonize = false;
|
||||||
-- Example: admins = { "user1@example.com", "user2@example.net" }
|
-- Example: admins = { "user1@example.com", "user2@example.net" }
|
||||||
admins = { "alex@{{ prosody_domain_name }}", "tux@{{ prosody_domain_name }}" }
|
admins = { "alex@{{ prosody_domain_name }}", "tux@{{ prosody_domain_name }}" }
|
||||||
|
|
||||||
-- Enable use of libevent for better performance under high load
|
|
||||||
-- For more information see: https://prosody.im/doc/libevent
|
|
||||||
use_libevent = true
|
|
||||||
|
|
||||||
-- Prosody will always look in its source directory for modules, but
|
-- Prosody will always look in its source directory for modules, but
|
||||||
-- this option allows you to specify additional locations where Prosody
|
-- this option allows you to specify additional locations where Prosody
|
||||||
-- will look for modules first. For community modules, see https://modules.prosody.im/
|
-- will look for modules first. For community modules, see https://modules.prosody.im/
|
||||||
plugin_paths = { "/usr/local/lib/prosody-modules" }
|
plugin_paths = { }
|
||||||
|
|
||||||
-- This is the list of modules Prosody will load on startup.
|
-- This is the list of modules Prosody will load on startup.
|
||||||
-- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
|
-- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
|
||||||
|
@ -45,8 +38,11 @@ modules_enabled = {
|
||||||
"tls"; -- Add support for secure TLS on c2s/s2s connections
|
"tls"; -- Add support for secure TLS on c2s/s2s connections
|
||||||
"dialback"; -- s2s dialback support
|
"dialback"; -- s2s dialback support
|
||||||
"disco"; -- Service discovery
|
"disco"; -- Service discovery
|
||||||
|
"limits"; -- bandwidth limits for xmpp connections
|
||||||
|
|
||||||
-- Not essential, but recommended
|
-- Not essential, but recommended
|
||||||
|
"bookmarks"; -- synchronize the list of open rooms between
|
||||||
|
clients
|
||||||
"carbons"; -- Keep multiple clients in sync
|
"carbons"; -- Keep multiple clients in sync
|
||||||
"pep"; -- Enables users to publish their avatar, mood, activity, playing music and more
|
"pep"; -- Enables users to publish their avatar, mood, activity, playing music and more
|
||||||
"private"; -- Private XML storage (for room bookmarks, etc.)
|
"private"; -- Private XML storage (for room bookmarks, etc.)
|
||||||
|
@ -60,17 +56,22 @@ modules_enabled = {
|
||||||
"time"; -- Let others know the time here on this server
|
"time"; -- Let others know the time here on this server
|
||||||
"ping"; -- Replies to XMPP pings with pongs
|
"ping"; -- Replies to XMPP pings with pongs
|
||||||
"register"; -- Allow users to register on this server using a client and change passwords
|
"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
|
"account_activity"; -- record time when account was last used
|
||||||
--"csi_simple"; -- Simple Mobile optimizations
|
-- "cloud_notify"; -- push notifications for mobile devices
|
||||||
|
|
||||||
|
-- "mam"; -- Store messages in an archive and allow users to access it
|
||||||
|
"csi_simple"; -- Simple Mobile optimizations -- buffer
|
||||||
|
unimportant messages to inactive devices
|
||||||
|
|
||||||
-- Admin interfaces
|
-- Admin interfaces
|
||||||
"admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
|
"admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
|
||||||
"admin_telnet"; -- Opens telnet console interface on localhost port 5582
|
"admin_shell"; -- Opens telnet console interface on localhost port 5582
|
||||||
|
|
||||||
-- HTTP modules
|
-- HTTP modules
|
||||||
--"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
|
--"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
|
||||||
--"websocket"; -- XMPP over WebSockets
|
--"websocket"; -- XMPP over WebSockets
|
||||||
--"http_files"; -- Serve static files from a directory over HTTP
|
--"http_files"; -- Serve static files from a directory over HTTP
|
||||||
|
-- "http"; -- allow http uploads
|
||||||
|
|
||||||
-- Other specific functionality
|
-- Other specific functionality
|
||||||
--"limits"; -- Enable bandwidth limiting for XMPP connections
|
--"limits"; -- Enable bandwidth limiting for XMPP connections
|
||||||
|
@ -82,12 +83,7 @@ modules_enabled = {
|
||||||
--"motd"; -- Send a message to users when they log in
|
--"motd"; -- Send a message to users when they log in
|
||||||
--"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
|
--"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
|
||||||
--"proxy65"; -- Enables a file transfer proxy service which clients behind NAT can use
|
--"proxy65"; -- Enables a file transfer proxy service which clients behind NAT can use
|
||||||
|
|
||||||
-- alex
|
|
||||||
"smacks"; -- XEP-0198: Stream Management
|
"smacks"; -- XEP-0198: Stream Management
|
||||||
"csi"; -- XEP-0352: Client State Indication
|
|
||||||
"csi_battery_saver";
|
|
||||||
"graceful_shutdown";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-- These modules are auto-loaded, but should you want
|
-- These modules are auto-loaded, but should you want
|
||||||
|
@ -99,6 +95,16 @@ modules_disabled = {
|
||||||
-- "posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
|
-- "posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
limits = {
|
||||||
|
c2s = {
|
||||||
|
rate = "200kb/s";
|
||||||
|
};
|
||||||
|
s2sin = {
|
||||||
|
rate = "1000kb/s";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
-- Disable account creation by default, for security
|
-- Disable account creation by default, for security
|
||||||
-- For more information see https://prosody.im/doc/creating_accounts
|
-- For more information see https://prosody.im/doc/creating_accounts
|
||||||
allow_registration = false
|
allow_registration = false
|
||||||
|
@ -144,6 +150,13 @@ authentication = "internal_hashed"
|
||||||
|
|
||||||
storage = "sql" -- Default is "internal"
|
storage = "sql" -- Default is "internal"
|
||||||
|
|
||||||
|
|
||||||
|
-- Component "xmpp.n39.eu" "http_file_share"
|
||||||
|
|
||||||
|
-- http_file_share_size_limit = 160*1024*1024;
|
||||||
|
-- http_file_share_daily_quota = 500*1024*1024;
|
||||||
|
-- http_file_share_expires_after = 7*24*60*60;
|
||||||
|
|
||||||
-- For the "sql" backend, you can uncomment *one* of the below to configure:
|
-- For the "sql" backend, you can uncomment *one* of the below to configure:
|
||||||
sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename.
|
sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename.
|
||||||
--sql = { driver = "MySQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
|
--sql = { driver = "MySQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue