thorite: scrape forgejo and hedgedoc

This commit is contained in:
xinyangli 2024-12-04 16:34:51 +08:00
parent f260f7d847
commit b667f8bf3f
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE
4 changed files with 33 additions and 7 deletions

View file

@ -38,6 +38,9 @@ let
UPDATE_AVATAR = false;
OPENID_CONNECT_SCOPES = "openid profile email groups";
};
metrics = {
ENABLED = true;
};
other = {
SHOW_FOOTER_VERSION = false;
};

View file

@ -30,6 +30,7 @@ in
scope = "openid email profile";
clientID = "hedgedoc";
};
enableStatsApi = true;
allowAnonymous = false;
defaultPermission = "private";
};

View file

@ -1,5 +1,19 @@
{ config, my-lib, ... }:
{
config,
lib,
my-lib,
...
}:
with my-lib;
let
inherit (my-lib.settings)
minifluxUrl
gotosocialUrl
hedgedocDomain
forgejoDomain
;
removeHttps = s: lib.removePrefix "https://" s;
in
{
config = {
sops = {
@ -73,16 +87,24 @@ with my-lib;
{
inherit passwordFile;
name = "gotosocial";
address = "gts.xiny.li";
address = removeHttps gotosocialUrl;
}
{
inherit passwordFile;
name = "miniflux";
address = "rss.xiny.li";
address = removeHttps minifluxUrl;
}
{
name = "hedgedoc";
address = hedgedocDomain;
}
{
name = "forgejo";
address = forgejoDomain;
}
{
name = "ntfy";
address = "ntfy.xiny.li";
address = "ntfy.xinyang.life";
}
{
name = "grafana-eu";
@ -109,11 +131,11 @@ with my-lib;
++ (mkBlackboxScrapes [
{
hostAddress = "thorite.coho-tet.ts.net";
targetAddresses = probeList ++ [ "49.13.13.122:22" ];
targetAddresses = probeList ++ [ "49.13.13.122:443" ];
}
{
hostAddress = "massicot.coho-tet.ts.net";
targetAddresses = probeList ++ [ "45.142.178.32:22" ];
targetAddresses = probeList ++ [ "45.142.178.32:443" ];
}
{
hostAddress = "weilite.coho-tet.ts.net";

View file

@ -36,7 +36,7 @@ in
btrfsRoots = [ ];
};
services.postgresqlBackup = {
services.postgresqlBackup = lib.mkIf config.services.postgresql.enable {
enable = true;
compression = "zstd";
compressionLevel = 9;