docuwiki.nix: fix string escaping
\. has no effect in single quoted strings
This commit is contained in:
parent
0c8f5c0f15
commit
2c7f09a78f
1 changed files with 2 additions and 2 deletions
|
@ -329,7 +329,7 @@ in
|
|||
extraConfig = "internal;";
|
||||
};
|
||||
|
||||
locations."~ ^/lib.*\.(js|css|gif|png|ico|jpg|jpeg)$" = {
|
||||
locations."~ ^/lib.*\\.(js|css|gif|png|ico|jpg|jpeg)$" = {
|
||||
extraConfig = "expires 365d;";
|
||||
};
|
||||
|
||||
|
@ -349,7 +349,7 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
locations."~ \.php$" = {
|
||||
locations."~ \\.php$" = {
|
||||
extraConfig = ''
|
||||
try_files $uri $uri/ /doku.php;
|
||||
include ${pkgs.nginx}/conf/fastcgi_params;
|
||||
|
|
Loading…
Reference in a new issue