Use wildcard

This commit is contained in:
Invariantspace 2023-12-06 23:34:51 -08:00
parent a7e892635c
commit 65416105db
4 changed files with 15 additions and 15 deletions

View file

@ -14,9 +14,9 @@
The home directory for the default user.
'';
};
tsMask = mkOption {
wildcard = mkOption {
type = types.str;
default = "100.64.0.0/10";
default = "0.0.0.0";
description = ''
The localhost address.
'';

View file

@ -3,10 +3,10 @@
{
services.matrix-conduit = {
enable = true;
settings.global = let const = config.constants; in {
address = const.tsMask;
port = const.port.conduit;
server_name = config.constants.domain;
settings.global = with config.constants; {
address = wildcard;
port = port.conduit;
server_name = domain;
};
};
}

View file

@ -6,11 +6,11 @@
appName = "Forgejo";
package = pkgs.forgejo;
settings = {
server = let const = config.constants; in {
DOMAIN = const.domain;
HTTP_ADDR = const.tsMask;
HTTP_PORT = const.port.forgejo;
ROOT_URL = "https://forgejo.${const.domain}";
server = with config.constants; {
DOMAIN = domain;
HTTP_ADDR = wildcard;
HTTP_PORT = port.forgejo;
ROOT_URL = "https://forgejo.${domain}";
};
service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;

View file

@ -2,11 +2,11 @@
{
services = {
headscale = let const = config.constants; in {
headscale = with config.constants; {
enable = true;
address = const.localhost;
port = const.port.headscale;
settings.server_url = "https://headscale.${const.domain}";
address = localhost;
port = port.headscale;
settings.server_url = "https://headscale.${domain}";
};
tailscale = {
enable = true;