123 lines
4.6 KiB
Lua
Executable file
123 lines
4.6 KiB
Lua
Executable file
admins = { "q@porno4free.ru" }
|
|
plugin_paths = {"/etc/prosody/prosody-modules"}
|
|
daemonize = false
|
|
|
|
modules_enabled = {
|
|
|
|
-- Generally required
|
|
"disco"; -- Service discovery
|
|
"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
|
|
|
|
-- Not essential, but recommended
|
|
"blocklist"; -- Allow users to block communications with other users
|
|
"bookmarks"; -- Synchronise the list of open rooms between clients
|
|
"carbons"; -- Keep multiple online clients in sync
|
|
"dialback"; -- Support for verifying remote servers using DNS
|
|
"limits"; -- Enable bandwidth limiting for XMPP connections
|
|
"pep"; -- Allow users to store public and private data in their account
|
|
"private"; -- Legacy account storage mechanism (XEP-0049)
|
|
"smacks"; -- Stream management and resumption (XEP-0198) "vcard4"; -- User profiles (stored in PEP)
|
|
"vcard_legacy"; -- Conversion between legacy vCard and PEP Avatar, vcard
|
|
|
|
-- Nice to have
|
|
"csi_simple"; -- Simple but effective traffic optimizations for mobile devices
|
|
"invites"; -- Create and manage invites
|
|
"invites_adhoc"; -- Allow admins/users to create invitations via their client
|
|
"invites_register"; -- Allows invited users to create accounts
|
|
"ping"; -- Replies to XMPP pings with pongs
|
|
"register"; -- Allow users to register on this server using a client and change passwords
|
|
"time"; -- Let others know the time here on this server
|
|
"uptime"; -- Report how long server has been running
|
|
"version"; -- Replies to server version requests
|
|
"mam"; -- Store recent messages to allow multi-device synchronization
|
|
"turn_external"; -- Provide external STUN/TURN service for e.g. audio/video calls
|
|
-- Admin interfaces
|
|
"admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
|
|
"admin_shell"; -- Allow secure administration via 'prosodyctl shell'
|
|
"admin_telnet";
|
|
-- HTTP modules
|
|
--"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
|
|
"http_openmetrics"; -- for exposing metrics to stats collectors
|
|
--"websocket"; -- XMPP over WebSockets
|
|
"unknown"
|
|
|
|
-- Other specific functionality
|
|
--"announce"; -- Send announcement to all online users
|
|
-- "groups"; -- Shared roster support
|
|
--"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
|
|
--"mimicking"; -- Prevent address spoofing
|
|
--"motd"; -- Send a message to users when they log in
|
|
--"proxy65"; -- Enables a file transfer proxy service which clients behind NAT can use
|
|
--"s2s_bidi"; -- Bi-directional server-to-server (XEP-0288)
|
|
--"server_contact_info"; -- Publish contact information for this service
|
|
--"tombstones"; -- Prevent registration of deleted accounts
|
|
--"watchregistrations"; -- Alert admins of registrations
|
|
--"welcome"; -- Welcome users who register accounts
|
|
}
|
|
|
|
modules_disabled = {
|
|
-- "offline"; -- Store offline messages
|
|
-- "c2s"; -- Handle client connections
|
|
-- "s2s"; -- Handle server-to-server connections
|
|
-- "posix"; -- POSIX functionality, sends server to background, etc.
|
|
}
|
|
-- Auth --
|
|
allow_unencrypted_plain_auth = true
|
|
c2s_require_encryption = false
|
|
s2s_secure_auth = true
|
|
allow_registration = false
|
|
registration_invite_only = false
|
|
authentication = "internal_hashed"
|
|
cyrus_service_name = "xmpp"
|
|
|
|
limits = {
|
|
c2s = {
|
|
rate = "1000kb/s";
|
|
};
|
|
s2sin = {
|
|
rate = "3000kb/s";
|
|
};
|
|
}
|
|
|
|
pidfile = "/run/prosody/prosody.pid"
|
|
|
|
-- Arhive Message --
|
|
--storage = "sql" -- Default is "internal"
|
|
--sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "okArkhipsql)(%", host = "localhost" }
|
|
|
|
archive_expires_after = "never"
|
|
|
|
-- TURN --
|
|
turn_external_host = "bebrik.xyz"
|
|
turn_external_secret = "jasdkfladkjfadsklfagj12"
|
|
|
|
-- For advanced logging see https://prosody.im/doc/logging
|
|
log = {
|
|
info = "/var/log/prosody/prosody.log"; -- Change 'info' to 'debug' for verbose logging
|
|
error = "/var/log/prosody/prosody.err";
|
|
debug = "/var/log/prosody/prosody_debug.log";
|
|
}
|
|
certificates = "certs"
|
|
|
|
----------- Virtual hosts -----------
|
|
VirtualHost "porno4free.ru"
|
|
ssl = {
|
|
key = "/etc/prosody/ssl/porno4free.ru.key";
|
|
certificate = "/etc/prosody/ssl/porno4free.ru.fullchain.pem";
|
|
}
|
|
|
|
------ Components ------
|
|
Component "chat.porno4free.ru" "muc"
|
|
modules_enabled = { "muc_mam" }
|
|
restrict_room_creation = "local"
|
|
muc_room_default_language = "ru"
|
|
muc_room_default_history_length = 228
|
|
|
|
Component "proxy.porno4free.ru" "proxy65"
|
|
|
|
Component "uploads.porno4free.ru" "http_upload_external"
|
|
http_upload_external_base_url = "https://uploads.porno4free.ru/"
|
|
http_upload_external_secret = "bebra228"
|
|
http_upload_external_file_size_limit = 2147483648
|