nixos/anubis: adjust provided options

NullCube b2714cd7 f826658c

Changed files
+20 -6
nixos
modules
services
networking
+20 -6
nixos/modules/services/networking/anubis.nix
···
example = "tcp";
type = types.str;
};
-
SOCKET_MODE = mkDefaultOption "settings.SOCKET_MODE" {
-
default = "0770";
-
description = "The permissions on the Unix domain sockets created.";
-
example = "0700";
-
type = types.str;
-
};
DIFFICULTY = mkDefaultOption "settings.DIFFICULTY" {
default = 4;
description = ''
···
bots by wildcard.
'';
type = types.bool;
};
# generated by default
···
example = "tcp";
type = types.str;
};
DIFFICULTY = mkDefaultOption "settings.DIFFICULTY" {
default = 4;
description = ''
···
bots by wildcard.
'';
type = types.bool;
+
};
+
OG_PASSTHROUGH = mkDefaultOption "settings.OG_PASSTHROUGH" {
+
default = false;
+
description = ''
+
Whether to enable Open Graph tag passthrough.
+
+
This enables social previews of resources protected by
+
Anubis without having to exempt each scraper individually.
+
'';
+
type = types.bool;
+
};
+
WEBMASTER_EMAIL = mkDefaultOption "settings.WEBMASTER_EMAIL" {
+
default = null;
+
description = ''
+
If set, shows a contact email address when rendering error pages.
+
+
This email address will be how users can get in contact with administrators.
+
'';
+
example = "alice@example.com";
+
type = types.nullOr types.str;
};
# generated by default