src.nth.io/

summaryrefslogtreecommitdiff
path: root/prosody/templates/prosody.cfg.lua.j2
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-06-14 15:22:14 -0500
committerLuke Hoersten <[email protected]>2020-06-14 15:22:14 -0500
commit0301c507208ff895645e23b1d766438af795ebbc (patch)
treedd62fcbb7e16dd0e7d642a3dec60f566864c69d1 /prosody/templates/prosody.cfg.lua.j2
parent2f583cf15c00744ed6799c06ed71fde73c7ba839 (diff)
Added postgresql for prosody.
Diffstat (limited to 'prosody/templates/prosody.cfg.lua.j2')
-rw-r--r--prosody/templates/prosody.cfg.lua.j219
1 files changed, 15 insertions, 4 deletions
diff --git a/prosody/templates/prosody.cfg.lua.j2 b/prosody/templates/prosody.cfg.lua.j2
index 15a1b38..32bc1a6 100644
--- a/prosody/templates/prosody.cfg.lua.j2
+++ b/prosody/templates/prosody.cfg.lua.j2
@@ -1,8 +1,19 @@
VirtualHost "{{prosody_vhost}}"
- ssl = {
- key = "{{prosody_ssl_privkey}}";
- certificate = "{{prosody_ssl_cert}}";
- }
+
+ssl = {
+ key = "{{prosody_ssl_privkey}}";
+ certificate = "{{prosody_ssl_cert}}";
+}
+
+storage = "sql"
+sql = {
+ driver = "PostgreSQL";
+ database = "{{prosody_db}}";
+ host = "localhost";
+ port = {{prosody_db_port}};
+ username = "{{prosody_db}}";
+ password = "{{prosody_db_pass}}";
+}
------ Components ------
-- You can specify components to add hosts that provide special services,