Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
| 1b04cd6f94 |
3 changed files with 37 additions and 1 deletions
|
|
@ -1,7 +1,9 @@
|
|||
{ ... }: {
|
||||
imports = [ ./gandicloud.nix ];
|
||||
imports = [ ./matrix.nix ./gandicloud.nix ];
|
||||
|
||||
networking.hostName = "apogee";
|
||||
|
||||
services.postgresql.enable = true;
|
||||
|
||||
promptSymbol = "🔭";
|
||||
}
|
||||
|
|
|
|||
28
hosts/apogee/matrix.nix
Normal file
28
hosts/apogee/matrix.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ config, ... }:
|
||||
let domain = "leaf.ninja";
|
||||
in {
|
||||
age.secrets.synapse-secrets-config.file =
|
||||
./secrets/synapse-secrets-config.age;
|
||||
|
||||
services.matrix-synapse = {
|
||||
enable = true;
|
||||
extraConfigFiles = [ config.age.secrets.synapse-secrets-config.path ];
|
||||
settings = {
|
||||
server_name = domain;
|
||||
database_type = "psycopg2";
|
||||
database_args.database = "matrix-synapse";
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
8448 # Matrix federation
|
||||
];
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts."matrix.${domain}".extraConfig = ''
|
||||
reverse_proxy /_matrix/* localhost:8008
|
||||
reverse_proxy /_synapse/client/* localhost:8008
|
||||
'';
|
||||
};
|
||||
}
|
||||
6
hosts/apogee/secrets/synapse-secrets-config.age
Normal file
6
hosts/apogee/secrets/synapse-secrets-config.age
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 f+PJrQ 2Gd75cRZviUH5xYRTC+6oKAT5/FfpY2zfMJVYwVlcCs
|
||||
eA4B5qHSoPujIgcpBl4UOT8ovvdiTUb16Yk/lHNJJKo
|
||||
--- 58bdTWl7z2skdVACACl/aAt76ciYkJOjnvDyendgKpQ
|
||||
Q¼³¿‡vð¨ÖÑ=·VU&÷‡ÿLd°<¸#³¥Ëh~yð"«kvõ1I<31>ƒz?»›’U“……üåH
|
||||
rÑYIm½¤lÒÈhÓû&<26>ðÁªPqžK>Œsž;տɅuX7·¥Îó©¿z<C2BF>-¦(êȬ
|
||||
Loading…
Add table
Add a link
Reference in a new issue