feat: Added tuwunel
This commit is contained in:
13
nixos/tako/services/tuwunel.nix
Normal file
13
nixos/tako/services/tuwunel.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{config, ...}: {
|
||||
services.matrix-tuwunel = {
|
||||
enable = true;
|
||||
settings.global = {
|
||||
server_name = "darksailor.dev";
|
||||
unix_socket_path = "/var/run/tuwunel/tuwunel.sock";
|
||||
};
|
||||
};
|
||||
services.caddy.virtualHosts."matrix.darksailor.dev".extraConfig = ''
|
||||
reverse_proxy unix//var/run/tuwunel/tuwunel.sock
|
||||
'';
|
||||
users.users.caddy.extraGroups = ["tuwunel"];
|
||||
}
|
||||
Reference in New Issue
Block a user