Compare commits

..

2 commits

Author SHA1 Message Date
09975ab9c7
sora: init justlog
All checks were successful
flake check / check (push) Successful in 4m46s
fmt check / check (push) Successful in 44s
2023-12-15 08:28:33 -05:00
82edffd93f
sakura: init justlog 2023-12-15 08:25:01 -05:00
4 changed files with 30 additions and 0 deletions

View file

@ -16,6 +16,10 @@
device = "/dev/disk/by-uuid/db3e4722-35a6-44fb-8e4d-a75166b845cb"; device = "/dev/disk/by-uuid/db3e4722-35a6-44fb-8e4d-a75166b845cb";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/home/notoh/justlog/logs" = {
device = "192.168.1.199:/mnt/Sutoreji/twitchlogs";
fsType = "nfs";
};
swapDevices = [ swapDevices = [
{device = "/dev/disk/by-uuid/c5afba13-f1af-4e7f-994b-f565c52d92fc";} {device = "/dev/disk/by-uuid/c5afba13-f1af-4e7f-994b-f565c52d92fc";}

View file

@ -9,5 +9,6 @@
./conduit.nix ./conduit.nix
./tailscale.nix ./tailscale.nix
./searxng.nix ./searxng.nix
./justlog.nix
]; ];
} }

View file

@ -0,0 +1,11 @@
{...}: {
networking.firewall.allowedTCPPorts = [8025];
virtualisation.oci-containers.containers.justlog = {
image = "ghcr.io/gempir/justlog";
ports = ["8025:8025"];
volumes = [
"/home/notoh/justlog/config.json:/etc/justlog.json"
"/home/notoh/justlog/logs:/logs"
];
};
}

View file

@ -189,6 +189,19 @@
tls.domains = [{main = "*.flake.sh";}]; tls.domains = [{main = "*.flake.sh";}];
tls.certresolver = "production"; tls.certresolver = "production";
}; };
justlog-insecure = {
rule = "Host(`logs.flake.sh`)";
entrypoints = ["web"];
service = "justlog";
middlewares = "redirect-to-https";
};
justlog = {
rule = "Host(`logs.flake.sh`)";
entrypoints = ["websecure"];
service = "justlog";
tls.domains = [{main = "*.flake.sh";}];
tls.certresolver = "production";
};
}; };
services = { services = {
gitssh.loadBalancer.servers = [{url = "tcp://100.121.201.47:2222";}]; gitssh.loadBalancer.servers = [{url = "tcp://100.121.201.47:2222";}];
@ -204,6 +217,7 @@
vaultwarden.loadBalancer.servers = [{url = "http://100.121.201.47:8222";}]; vaultwarden.loadBalancer.servers = [{url = "http://100.121.201.47:8222";}];
searxng.loadBalancer.servers = [{url = "http://100.121.201.47:8100";}]; searxng.loadBalancer.servers = [{url = "http://100.121.201.47:8100";}];
neko.loadBalancer.servers = [{url = "http://100.104.42.96:8085";}]; neko.loadBalancer.servers = [{url = "http://100.104.42.96:8085";}];
justlog.loadBalancer.servers = [{url = "http://100.121.201.47:8025";}];
}; };
}; };
}; };