Use wildcard
This commit is contained in:
parent
a7e892635c
commit
65416105db
4 changed files with 15 additions and 15 deletions
|
|
@ -14,9 +14,9 @@
|
||||||
The home directory for the default user.
|
The home directory for the default user.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
tsMask = mkOption {
|
wildcard = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "100.64.0.0/10";
|
default = "0.0.0.0";
|
||||||
description = ''
|
description = ''
|
||||||
The localhost address.
|
The localhost address.
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@
|
||||||
{
|
{
|
||||||
services.matrix-conduit = {
|
services.matrix-conduit = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.global = let const = config.constants; in {
|
settings.global = with config.constants; {
|
||||||
address = const.tsMask;
|
address = wildcard;
|
||||||
port = const.port.conduit;
|
port = port.conduit;
|
||||||
server_name = config.constants.domain;
|
server_name = domain;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,11 @@
|
||||||
appName = "Forgejo";
|
appName = "Forgejo";
|
||||||
package = pkgs.forgejo;
|
package = pkgs.forgejo;
|
||||||
settings = {
|
settings = {
|
||||||
server = let const = config.constants; in {
|
server = with config.constants; {
|
||||||
DOMAIN = const.domain;
|
DOMAIN = domain;
|
||||||
HTTP_ADDR = const.tsMask;
|
HTTP_ADDR = wildcard;
|
||||||
HTTP_PORT = const.port.forgejo;
|
HTTP_PORT = port.forgejo;
|
||||||
ROOT_URL = "https://forgejo.${const.domain}";
|
ROOT_URL = "https://forgejo.${domain}";
|
||||||
};
|
};
|
||||||
service.DISABLE_REGISTRATION = true;
|
service.DISABLE_REGISTRATION = true;
|
||||||
session.COOKIE_SECURE = true;
|
session.COOKIE_SECURE = true;
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
headscale = let const = config.constants; in {
|
headscale = with config.constants; {
|
||||||
enable = true;
|
enable = true;
|
||||||
address = const.localhost;
|
address = localhost;
|
||||||
port = const.port.headscale;
|
port = port.headscale;
|
||||||
settings.server_url = "https://headscale.${const.domain}";
|
settings.server_url = "https://headscale.${domain}";
|
||||||
};
|
};
|
||||||
tailscale = {
|
tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue