prosody/templates/prosody.cfg.lua.j2
author Luke Hoersten <luke@hoersten.org>
Sun, 08 Jan 2023 16:51:18 -0600
changeset 205 2ea9460dc8d2
parent 138 591b6609fc64
permissions -rw-r--r--
Enabled presence events in dendrite.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
23
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
VirtualHost "{{prosody_vhost}}"
45
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
     2
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
     3
storage = "sql"
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
     4
sql = {
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
     5
    driver = "PostgreSQL";
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
     6
    database = "{{prosody_db}}";
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
     7
    host = "localhost";
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
     8
    port = {{prosody_db_port}};
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
     9
    username = "{{prosody_db}}";
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
    10
    password = "{{prosody_db_pass}}";
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
    11
}
23
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
------ Components ------
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
-- You can specify components to add hosts that provide special services,
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
-- like multi-user conferences, and transports.
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
-- For more information on components, see http://prosody.im/doc/components
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
-- Set up a MUC (multi-user chat) room server on conference.example.com:
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
--Component "conference.example.com" "muc"
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    21
-- Set up a SOCKS5 bytestream proxy for server-proxied file transfers:
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    22
--Component "proxy.example.com" "proxy65"
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    23
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    24
---Set up an external component (default component port is 5347)
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    25
--Component "gateway.example.com"
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    26
--	component_secret = "password"