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; UPDATE_AVATAR = false;
OPENID_CONNECT_SCOPES = "openid profile email groups"; OPENID_CONNECT_SCOPES = "openid profile email groups";
}; };
metrics = {
ENABLED = true;
};
other = { other = {
SHOW_FOOTER_VERSION = false; SHOW_FOOTER_VERSION = false;
}; };

View file

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

View file

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

View file

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