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