add valent
This commit is contained in:
parent
451ef9c46c
commit
461bbb1967
8 changed files with 105 additions and 3 deletions
|
|
@ -1,37 +0,0 @@
|
|||
{inputs, ...}: {
|
||||
imports = [inputs.grapevine.nixosModules.default];
|
||||
networking.firewall.allowedTCPPorts = [8448];
|
||||
|
||||
services = let
|
||||
domain = "federated.nexus";
|
||||
subdomain = "matrix.${domain}";
|
||||
address = "127.0.0.3";
|
||||
in {
|
||||
grapevine = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server_name = domain;
|
||||
database.backend = "rocksdb";
|
||||
media.allow_unauthenticated_access = true;
|
||||
federation = {
|
||||
max_concurrent_requests = 10000;
|
||||
self_test = false;
|
||||
};
|
||||
|
||||
server_discovery = {
|
||||
server.authority = "${subdomain}:443";
|
||||
client.base_url = "https://${subdomain}";
|
||||
};
|
||||
|
||||
listen = [
|
||||
{
|
||||
type = "tcp";
|
||||
inherit address;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
caddy.virtualHosts."${subdomain}".extraConfig = "reverse_proxy ${address}:6167";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue