continuwuity: init
This commit is contained in:
parent
f2f04748c5
commit
aed5d7f4c3
3 changed files with 41 additions and 0 deletions
|
|
@ -95,6 +95,10 @@
|
||||||
import default-settings
|
import default-settings
|
||||||
import cloudflare-tls
|
import cloudflare-tls
|
||||||
|
|
||||||
|
handle /.well-known/matrix/* {
|
||||||
|
reverse_proxy unix/${config.services.matrix-continuwuity.settings.global.unix_socket_path}
|
||||||
|
}
|
||||||
|
|
||||||
respond "{client_ip}"
|
respond "{client_ip}"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
36
modules/nixos/services/homeserver/continuwuity.nix
Normal file
36
modules/nixos/services/homeserver/continuwuity.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
users.groups.continuwuity.members = [ "caddy" ];
|
||||||
|
|
||||||
|
services.caddy.virtualHosts."matrix.wo2wz.fyi".extraConfig = ''
|
||||||
|
import default-settings
|
||||||
|
import cloudflare-tls
|
||||||
|
|
||||||
|
reverse_proxy unix/${config.services.matrix-continuwuity.settings.global.unix_socket_path}
|
||||||
|
'';
|
||||||
|
|
||||||
|
services.matrix-continuwuity = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
global = {
|
||||||
|
address = null;
|
||||||
|
unix_socket_path = "/run/continuwuity/continuwuity.sock";
|
||||||
|
unix_socket_perms = 660;
|
||||||
|
|
||||||
|
server_name = "wo2wz.fyi";
|
||||||
|
well_known = {
|
||||||
|
client = "https://matrix.wo2wz.fyi";
|
||||||
|
server = "matrix.wo2wz.fyi:443";
|
||||||
|
};
|
||||||
|
|
||||||
|
allow_registration = false;
|
||||||
|
allow_encryption = true;
|
||||||
|
allow_federation = true;
|
||||||
|
trusted_servers = [ "matrix.org" ];
|
||||||
|
|
||||||
|
new_user_displayname_suffix = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
./restic
|
./restic
|
||||||
./caddy.nix
|
./caddy.nix
|
||||||
./cloudflared.nix
|
./cloudflared.nix
|
||||||
|
./continuwuity.nix
|
||||||
./forgejo.nix
|
./forgejo.nix
|
||||||
./gameserver-caddy.nix
|
./gameserver-caddy.nix
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue