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.
|
||||
'';
|
||||
};
|
||||
tsMask = mkOption {
|
||||
wildcard = mkOption {
|
||||
type = types.str;
|
||||
default = "100.64.0.0/10";
|
||||
default = "0.0.0.0";
|
||||
description = ''
|
||||
The localhost address.
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue