diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-08-07 17:42:16 +0200 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-08-07 17:42:16 +0200 |
| commit | c17d6499c6fc135e019b833d67e467583047ab62 (patch) | |
| tree | 169cae4d5e116775fe8c8586e594e7705ac2536b /config | |
| parent | 2916403f08606fac246679eabf7b954dc036cf16 (diff) | |
only proxy /morty in nginx when morty is enabled
Diffstat (limited to 'config')
| -rw-r--r-- | config/searx/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/searx/default.nix b/config/searx/default.nix index abd1b19..d58cb95 100644 --- a/config/searx/default.nix +++ b/config/searx/default.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, ... }: +{ pkgs, lib, config, ... }: let ports = { @@ -26,7 +26,7 @@ in { ''; }; "/static/" = { alias = "${pkgs.searx}/share/static/"; }; - "/morty" = { + "/morty" = lib.mkIf (config.services.morty.enable) { proxyPass = "http://127.0.0.1:${toString ports.morty}"; extraConfig = '' proxy_set_header Host $host; |
