diff options
author | Sarah Brofeldt <sbrofeldt@gmail.com> | 2019-06-08 14:36:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-08 14:36:04 +0200 |
commit | 635e3b1e6fd73e2dca50db9b0002be84bce68f14 (patch) | |
tree | 83a0dfe4124e8bbcd8e0fed4bad8054453de6122 | |
parent | e3bacc0eeaf7973ba3ecd55a4a9e1ef6273dcee5 (diff) | |
parent | 527876038e9bca03b0bfcebc546703c0b93e08d4 (diff) |
Merge pull request #62758 from peterhoeg/f/zm
nixos/zoneminder: font files cannot be found
-rw-r--r-- | nixos/modules/services/misc/zoneminder.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/zoneminder.nix b/nixos/modules/services/misc/zoneminder.nix index 01720ba432ed..9c555e8031c4 100644 --- a/nixos/modules/services/misc/zoneminder.nix +++ b/nixos/modules/services/misc/zoneminder.nix @@ -229,6 +229,8 @@ in { location / { try_files $uri $uri/ /index.php?$args =404; + rewrite ^/skins/.*/css/fonts/(.*)$ /fonts/$1 permanent; + location ~ /api/(css|img|ico) { rewrite ^/api(.+)$ /api/app/webroot/$1 break; try_files $uri $uri/ =404; |