thorite: scrape forgejo and hedgedoc
This commit is contained in:
parent
f260f7d847
commit
b667f8bf3f
4 changed files with 33 additions and 7 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue