prosody/templates/prosody.cfg.lua.j2
author Luke Hoersten <luke@hoersten.org>
Sun, 28 Jun 2020 15:08:36 -0500
changeset 54 1ea4f1c7c675
parent 45 2d7ba960b157
child 138 591b6609fc64
permissions -rw-r--r--
Updated client templating in adguard.
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
ssl = {
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
     4
    key = "{{prosody_ssl_privkey}}";
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
     5
    certificate = "{{prosody_ssl_cert}}";
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
     6
}
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
     7
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
     8
storage = "sql"
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
     9
sql = {
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
    10
    driver = "PostgreSQL";
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
    11
    database = "{{prosody_db}}";
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
    12
    host = "localhost";
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
    13
    port = {{prosody_db_port}};
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
    14
    username = "{{prosody_db}}";
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
    15
    password = "{{prosody_db_pass}}";
2d7ba960b157 Added postgresql for prosody.
Luke Hoersten <luke@hoersten.org>
parents: 23
diff changeset
    16
}
23
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
------ Components ------
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
-- You can specify components to add hosts that provide special services,
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
-- like multi-user conferences, and transports.
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    21
-- For more information on components, see http://prosody.im/doc/components
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    22
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    23
-- 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
    24
--Component "conference.example.com" "muc"
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    25
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    26
-- Set up a SOCKS5 bytestream proxy for server-proxied file transfers:
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    27
--Component "proxy.example.com" "proxy65"
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    28
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    29
---Set up an external component (default component port is 5347)
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    30
--Component "gateway.example.com"
b4ad03deace1 Added prosody role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    31
--	component_secret = "password"