mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 15:29:07 +01:00
scrutiny, searxng: Add unprotected assertion
This commit is contained in:
parent
7fd21d8cde
commit
25e81ccc80
2 changed files with 22 additions and 2 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
self,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.custom.web-services.scrutiny;
|
cfg = config.custom.web-services.scrutiny;
|
||||||
in
|
in
|
||||||
|
|
@ -16,6 +21,11 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
assertions = lib.singleton {
|
||||||
|
assertion = self.lib.isPrivateDomain cfg.domain;
|
||||||
|
message = self.lib.mkUnprotectedMessage "Scrutiny";
|
||||||
|
};
|
||||||
|
|
||||||
services.scrutiny = {
|
services.scrutiny = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.web.listen = {
|
settings.web.listen = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
self,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.custom.web-services.searxng;
|
cfg = config.custom.web-services.searxng;
|
||||||
in
|
in
|
||||||
|
|
@ -16,6 +21,11 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
assertions = lib.singleton {
|
||||||
|
assertion = self.lib.isPrivateDomain cfg.domain;
|
||||||
|
message = self.lib.mkUnprotectedMessage "SearXNG";
|
||||||
|
};
|
||||||
|
|
||||||
services.searx = {
|
services.searx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue