box: open loki up on tailnet

This commit is contained in:
Aaron Bieber 2022-09-10 22:16:20 -06:00
parent 42fe13ea64
commit a21956d951
No known key found for this signature in database

View File

@ -327,6 +327,7 @@ in {
enable = true;
configuration = {
server.http_listen_port = 3030;
server.http_listen_address = "0.0.0.0";
auth_enabled = false;
ingester = {
@ -873,12 +874,17 @@ in {
# after = [ "postgresql.service" ];
#};
networking.firewall.allowedTCPPorts = config.services.openssh.ports
++ [ 80 443 config.services.gitea.ssh.clonePort ];
networking.firewall.allowedUDPPortRanges = [{
from = 60000;
to = 61000;
}];
networking = {
firewall = {
interfaces = { "tailscale0" = { allowedTCPPorts = [ 3030 ]; }; };
allowedTCPPorts = config.services.openssh.ports
++ [ 80 443 config.services.gitea.ssh.clonePort ];
allowedUDPPortRanges = [{
from = 60000;
to = 61000;
}];
};
};
users.users.qbit = userBase;
users.users.root = userBase;