use postgres for matrix + move host
This commit is contained in:
parent
774baa3dd7
commit
7facff578b
@ -60,7 +60,6 @@ in {
|
|||||||
services.matrix-synapse = {
|
services.matrix-synapse = {
|
||||||
enable = true;
|
enable = true;
|
||||||
server_name = cfg.host;
|
server_name = cfg.host;
|
||||||
database_type = "sqlite3";
|
|
||||||
enable_registration = cfg.enable_registration;
|
enable_registration = cfg.enable_registration;
|
||||||
listeners = [ {
|
listeners = [ {
|
||||||
bind_address = "127.0.0.1";
|
bind_address = "127.0.0.1";
|
||||||
@ -161,6 +160,15 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.postgresql.enable = true;
|
||||||
|
services.postgresql.initialScript = pkgs.writeText "synapse-init.sql" ''
|
||||||
|
CREATE ROLE "matrix-synapse" WITH LOGIN PASSWORD 'synapse';
|
||||||
|
CREATE DATABASE "matrix-synapse" WITH OWNER "matrix-synapse"
|
||||||
|
TEMPLATE template0
|
||||||
|
LC_COLLATE = "C"
|
||||||
|
LC_CTYPE = "C";
|
||||||
|
'';
|
||||||
|
|
||||||
services.jitsi-meet = lib.mkIf cfg.jitsi-meet.enable {
|
services.jitsi-meet = lib.mkIf cfg.jitsi-meet.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostName = cfg.jitsi-meet.host;
|
hostName = cfg.jitsi-meet.host;
|
||||||
|
@ -30,6 +30,24 @@
|
|||||||
mount = "stream.webm";
|
mount = "stream.webm";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.matrix = {
|
||||||
|
enable = true;
|
||||||
|
host = "neet.space";
|
||||||
|
enable_registration = false;
|
||||||
|
element-web = {
|
||||||
|
enable = true;
|
||||||
|
host = "chat.neet.space";
|
||||||
|
};
|
||||||
|
jitsi-meet = {
|
||||||
|
enable = true;
|
||||||
|
host = "meet.neet.space";
|
||||||
|
};
|
||||||
|
turn = {
|
||||||
|
host = "turn.neet.space";
|
||||||
|
secret = "a8369a0e96922abf72494bb888c85831b";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
security.acme.acceptTerms = true;
|
security.acme.acceptTerms = true;
|
||||||
security.acme.email = "letsencrypt+5@tar.ninja";
|
security.acme.email = "letsencrypt+5@tar.ninja";
|
||||||
|
|
||||||
|
@ -51,22 +51,4 @@
|
|||||||
port = 23563;
|
port = 23563;
|
||||||
domain = "voice.neet.space";
|
domain = "voice.neet.space";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.matrix = {
|
|
||||||
enable = true;
|
|
||||||
host = "neet.space";
|
|
||||||
enable_registration = false;
|
|
||||||
element-web = {
|
|
||||||
enable = true;
|
|
||||||
host = "chat.neet.space";
|
|
||||||
};
|
|
||||||
jitsi-meet = {
|
|
||||||
enable = true;
|
|
||||||
host = "meet.neet.space";
|
|
||||||
};
|
|
||||||
turn = {
|
|
||||||
host = "turn.neet.space";
|
|
||||||
secret = "a8369a0e96922abf72494bb888c85831b";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user