Listen to less ports
This commit is contained in:
parent
995bb58c6f
commit
f132e137e0
|
@ -96,7 +96,7 @@ in
|
||||||
};
|
};
|
||||||
env_file = [ cfg.envFile "${authentikEnv}" ];
|
env_file = [ cfg.envFile "${authentikEnv}" ];
|
||||||
ports = [
|
ports = [
|
||||||
"${toString cfg.port}:9000"
|
"127.0.0.1:${toString cfg.port}:9000"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
services.worker.service = {
|
services.worker.service = {
|
||||||
|
|
|
@ -34,6 +34,11 @@ in
|
||||||
default = 655;
|
default = 655;
|
||||||
description = "The port to listen on";
|
description = "The port to listen on";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
meshIp = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
description = "The mesh ip to be assigned by hostname";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable (builtins.seq
|
config = mkIf cfg.enable (builtins.seq
|
||||||
|
@ -46,6 +51,7 @@ in
|
||||||
myMeshIp = myHost.subnetAddr;
|
myMeshIp = myHost.subnetAddr;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
services.my-tinc.meshIp = myMeshIp;
|
||||||
# Scripts that set up the tinc services
|
# Scripts that set up the tinc services
|
||||||
environment.etc = {
|
environment.etc = {
|
||||||
"tinc/${networkName}/tinc-up".source = pkgs.writeScript "tinc-up-${networkName}" ''
|
"tinc/${networkName}/tinc-up".source = pkgs.writeScript "tinc-up-${networkName}" ''
|
||||||
|
|
|
@ -76,7 +76,7 @@ rec {
|
||||||
SCRIPT_NAME = "/admin";
|
SCRIPT_NAME = "/admin";
|
||||||
};
|
};
|
||||||
env_file = [ secrets."headscale/webui-env".path ];
|
env_file = [ secrets."headscale/webui-env".path ];
|
||||||
ports = [ "${toString webuiPort}:5000" ];
|
ports = [ "127.0.0.1:${toString webuiPort}:5000" ];
|
||||||
volumes = [
|
volumes = [
|
||||||
"/var/lib/headscale/webui:/data"
|
"/var/lib/headscale/webui:/data"
|
||||||
"/etc/headscale:/etc/headscale:ro"
|
"/etc/headscale:/etc/headscale:ro"
|
||||||
|
|
Loading…
Reference in a new issue