mirror of
https://github.com/Noratrieb/vps.git
synced 2026-03-15 13:46:08 +01:00
update and matrix
This commit is contained in:
parent
d392369473
commit
f2b1f2bc51
6 changed files with 50 additions and 3 deletions
36
nix/apps/matrix/default.nix
Normal file
36
nix/apps/matrix/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ pkgs, ... }: {
|
||||
services.matrix-continuwuity = {
|
||||
enable = true;
|
||||
settings = {
|
||||
global = {
|
||||
server_name = "noratrieb.dev";
|
||||
allow_registration = false;
|
||||
allow_encryption = true;
|
||||
allow_federation = true;
|
||||
trusted_servers = [ "matrix.org" ];
|
||||
well_known = {
|
||||
server = "matrix.noratrieb.dev:443";
|
||||
client = "https://matrix.noratrieb.dev";
|
||||
support_page = "https://noratrieb.dev";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
environment.systemPackages = [ pkgs.matrix-continuwuity ];
|
||||
services.caddy.virtualHosts."matrix.noratrieb.dev" = {
|
||||
extraConfig = ''
|
||||
encode zstd gzip
|
||||
|
||||
reverse_proxy * http://localhost:6167
|
||||
'';
|
||||
};
|
||||
services.caddy.virtualHosts."matrix.noratrieb.dev:8448" = {
|
||||
extraConfig = ''
|
||||
encode zstd gzip
|
||||
|
||||
reverse_proxy * http://localhost:6167
|
||||
'';
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 8448 ];
|
||||
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 6167 ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue