[chat.blazestar.net] Migrate to Continuwuity.
This commit is contained in:
@@ -14,36 +14,34 @@ in
|
||||
};
|
||||
|
||||
sops.templates."matrix-blazestar-net.env".content = ''
|
||||
TUWUNEL_REGISTRATION_TOKEN=${config.sops.placeholder."matrix/blazestar-registration-token"}
|
||||
CONTINUWUITY_REGISTRATION_TOKEN=${config.sops.placeholder."matrix/blazestar-registration-token"}
|
||||
'';
|
||||
|
||||
# This isn't using any of my usual helpers because I wanted to set a custom
|
||||
# serviceName in Traefik that is different from the hostname to avoid
|
||||
# conflicts with the havenisms.com server.
|
||||
virtualisation.oci-containers.containers."${serviceName}" = {
|
||||
# The 1.1.0 version has an issue with the compression being incorrectly tagged.
|
||||
# See: https://github.com/matrix-construct/tuwunel/issues/79
|
||||
image = "ghcr.io/matrix-construct/tuwunel:v1.0.0-release-all-x86_64-linux-gnu";
|
||||
image = "forgejo.ellis.link/continuwuation/continuwuity:latest";
|
||||
autoStart = true;
|
||||
volumes = [
|
||||
"matrix-blazestar-net-db:${dbPath}"
|
||||
];
|
||||
environment = {
|
||||
TUWUNEL_PORT = toString port;
|
||||
TUWUNEL_ADDRESS = "0.0.0.0"; # It'll bind to localhost by default with Podman
|
||||
TUWUNEL_SERVER_NAME = "blazestar.net";
|
||||
TUWUNEL_ALLOW_REGISTRATION = "true";
|
||||
TUWUNEL_ALLOW_CHECK_FOR_UPDATES = "true";
|
||||
TUWUNEL_ALLOW_FEDERATION = "true";
|
||||
TUWUNEL_DATABASE_BACKEND = "rocksdb";
|
||||
TUWUNEL_DATABASE_PATH = dbPath;
|
||||
TUWUNEL_WELL_KNOWN = ''
|
||||
CONTINUWUITY_PORT = toString port;
|
||||
CONTINUWUITY_ADDRESS = "0.0.0.0"; # It'll bind to localhost by default with Podman
|
||||
CONTINUWUITY_SERVER_NAME = "blazestar.net";
|
||||
CONTINUWUITY_ALLOW_REGISTRATION = "true";
|
||||
CONTINUWUITY_ALLOW_CHECK_FOR_UPDATES = "true";
|
||||
CONTINUWUITY_ALLOW_FEDERATION = "true";
|
||||
CONTINUWUITY_DATABASE_BACKEND = "rocksdb";
|
||||
CONTINUWUITY_DATABASE_PATH = dbPath;
|
||||
CONTINUWUITY_WELL_KNOWN = ''
|
||||
{
|
||||
client=https://${matrixHost}.blazestar.net,
|
||||
server=${matrixHost}.blazestar.net:443
|
||||
}
|
||||
'';
|
||||
TUWUNEL_TRUSTED_SERVERS = ''["matrix.org", "chat.havenisms.com"]'';
|
||||
CONTINUWUITY_TRUSTED_SERVERS = ''["matrix.org", "chat.havenisms.com"]'';
|
||||
};
|
||||
environmentFiles = [
|
||||
config.sops.templates."matrix-blazestar-net.env".path
|
||||
|
||||
Reference in New Issue
Block a user