mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
nixos/anubis: adjust provided options
This commit is contained in:
parent
f826658cb4
commit
b2714cd757
1 changed files with 20 additions and 6 deletions
|
@ -122,12 +122,6 @@ let
|
|||
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 = ''
|
||||
|
@ -146,6 +140,26 @@ let
|
|||
'';
|
||||
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
|
||||
POLICY_FNAME = mkDefaultOption "settings.POLICY_FNAME" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue