diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-11-28 02:54:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 02:54:54 +0100 |
commit | 4991514dbd8a70be610c4902f3d820e2ff8bcb2f (patch) | |
tree | b2230af58f0579798306eb2c5f97972d6eb21e98 /nixos/modules/services | |
parent | 86c27c210fd912c02b86a99bfa6addd04c0810fe (diff) | |
parent | 677d6f1623b1054ce9832c55c5be3a9b049bc086 (diff) | |
download | nixpkgs-4991514dbd8a70be610c4902f3d820e2ff8bcb2f.tar nixpkgs-4991514dbd8a70be610c4902f3d820e2ff8bcb2f.tar.gz nixpkgs-4991514dbd8a70be610c4902f3d820e2ff8bcb2f.tar.bz2 nixpkgs-4991514dbd8a70be610c4902f3d820e2ff8bcb2f.tar.lz nixpkgs-4991514dbd8a70be610c4902f3d820e2ff8bcb2f.tar.xz nixpkgs-4991514dbd8a70be610c4902f3d820e2ff8bcb2f.tar.zst nixpkgs-4991514dbd8a70be610c4902f3d820e2ff8bcb2f.zip |
Merge pull request #200114 from SuperSandro2000/changedetection-io
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/web-apps/changedetection-io.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/web-apps/changedetection-io.nix b/nixos/modules/services/web-apps/changedetection-io.nix index ace4cf1eabc..fc00aee4351 100644 --- a/nixos/modules/services/web-apps/changedetection-io.nix +++ b/nixos/modules/services/web-apps/changedetection-io.nix @@ -138,7 +138,8 @@ in StateDirectory = mkIf defaultStateDir "changedetection-io"; StateDirectoryMode = mkIf defaultStateDir "0750"; WorkingDirectory = cfg.datastorePath; - Environment = lib.optional (cfg.baseURL != null) "BASE_URL=${cfg.baseURL}" + Environment = [ "HIDE_REFERER=true" ] + ++ lib.optional (cfg.baseURL != null) "BASE_URL=${cfg.baseURL}" ++ lib.optional cfg.behindProxy "USE_X_SETTINGS=1" ++ lib.optional cfg.webDriverSupport "WEBDRIVER_URL=http://127.0.0.1:${toString cfg.chromePort}/wd/hub" ++ lib.optional cfg.playwrightSupport "PLAYWRIGHT_DRIVER_URL=ws://127.0.0.1:${toString cfg.chromePort}/?stealth=1&--disable-web-security=true"; |