Compare commits

...

4 commits

Author SHA1 Message Date
bdac59c471
sora: open dashboard for metrics
All checks were successful
/ check (push) Successful in 33s
2023-10-17 00:48:08 -04:00
501297ca5d
prometheus: enable traefik job 2023-10-17 00:47:58 -04:00
2fb22ddee3
home: remove gping and cachix 2023-10-17 00:22:29 -04:00
dd533805b1
searxng: switch to uwsgi mode 2023-10-17 00:22:00 -04:00
4 changed files with 22 additions and 4 deletions

View file

@ -20,11 +20,9 @@
du-dust du-dust
bottom bottom
gnupg gnupg
gping
ripgrep ripgrep
lazydocker lazydocker
yt-dlp yt-dlp
cachix
nfs-utils nfs-utils
dig dig
]; ];

View file

@ -8,7 +8,22 @@
services.searx = { services.searx = {
package = pkgs.searxng; package = pkgs.searxng;
enable = true; enable = true;
runInUwsgi = true;
uwsgiConfig = {
http = ":8100";
};
environmentFile = config.sops.secrets.searxng-secret.path; environmentFile = config.sops.secrets.searxng-secret.path;
limiterSettings = {
botdetection = {
ip_lists = {
pass_ip = [
"192.168.0.0/16"
"172.16.0.0/12"
"10.0.0.0/8"
];
};
};
};
settings = { settings = {
general = { general = {
debug = false; debug = false;

View file

@ -1,6 +1,6 @@
{config, ...}: { {config, ...}: {
sops.secrets.cloudflare-api-key = {}; sops.secrets.cloudflare-api-key = {};
networking.firewall.allowedTCPPorts = [80 443 2222]; networking.firewall.allowedTCPPorts = [80 443 2222 8080];
systemd.services.traefik = { systemd.services.traefik = {
environment = { environment = {
CLOUDFLARE_EMAIL = "jch0tm2e@notohh.dev"; CLOUDFLARE_EMAIL = "jch0tm2e@notohh.dev";
@ -202,7 +202,7 @@
}; };
staticConfigOptions = { staticConfigOptions = {
log.level = "DEBUG"; log.level = "DEBUG";
api.dashboard = false; api.dashboard = true;
api.insecure = false; api.insecure = false;
global = { global = {
checkNewVersion = false; checkNewVersion = false;

View file

@ -13,6 +13,11 @@ _: {
scrape_interval = "30s"; scrape_interval = "30s";
static_configs = [{targets = ["localhost:9100"];}]; static_configs = [{targets = ["localhost:9100"];}];
} }
{
job_name = "traefik";
scrape_interval = "30s";
static_configs = [{targets = ["100.87.54.48:8080"];}];
}
]; ];
exporters = { exporters = {
node = { node = {