mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
nixos/matomo: 3.8.0 introduces matomo.{php,js} files
This commit is contained in:
parent
2f059806ef
commit
faac33bc77
|
@ -45,12 +45,11 @@ in {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
default = null;
|
default = null;
|
||||||
example = "lighttpd";
|
example = "lighttpd";
|
||||||
# TODO: piwik.php might get renamed to matomo.php in future releases
|
|
||||||
description = ''
|
description = ''
|
||||||
Name of the web server user that forwards requests to the ${phpSocket} fastcgi socket for matomo if the nginx
|
Name of the web server user that forwards requests to the ${phpSocket} fastcgi socket for matomo if the nginx
|
||||||
option is not used. Either this option or the nginx option is mandatory.
|
option is not used. Either this option or the nginx option is mandatory.
|
||||||
If you want to use another webserver than nginx, you need to set this to that server's user
|
If you want to use another webserver than nginx, you need to set this to that server's user
|
||||||
and pass fastcgi requests to `index.php` and `piwik.php` to this socket.
|
and pass fastcgi requests to `index.php`, `matomo.php` and `piwik.php` (legacy name) to this socket.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -215,8 +214,11 @@ in {
|
||||||
locations."= /index.php".extraConfig = ''
|
locations."= /index.php".extraConfig = ''
|
||||||
fastcgi_pass unix:${phpSocket};
|
fastcgi_pass unix:${phpSocket};
|
||||||
'';
|
'';
|
||||||
# TODO: might get renamed to matomo.php in future versions
|
# allow matomo.php for tracking
|
||||||
# allow piwik.php for tracking
|
locations."= /matomo.php".extraConfig = ''
|
||||||
|
fastcgi_pass unix:${phpSocket};
|
||||||
|
'';
|
||||||
|
# allow piwik.php for tracking (deprecated name)
|
||||||
locations."= /piwik.php".extraConfig = ''
|
locations."= /piwik.php".extraConfig = ''
|
||||||
fastcgi_pass unix:${phpSocket};
|
fastcgi_pass unix:${phpSocket};
|
||||||
'';
|
'';
|
||||||
|
@ -237,8 +239,11 @@ in {
|
||||||
locations."= /robots.txt".extraConfig = ''
|
locations."= /robots.txt".extraConfig = ''
|
||||||
return 200 "User-agent: *\nDisallow: /\n";
|
return 200 "User-agent: *\nDisallow: /\n";
|
||||||
'';
|
'';
|
||||||
# TODO: might get renamed to matomo.js in future versions
|
# let browsers cache matomo.js
|
||||||
# let browsers cache piwik.js
|
locations."= /matomo.js".extraConfig = ''
|
||||||
|
expires 1M;
|
||||||
|
'';
|
||||||
|
# let browsers cache piwik.js (deprecated name)
|
||||||
locations."= /piwik.js".extraConfig = ''
|
locations."= /piwik.js".extraConfig = ''
|
||||||
expires 1M;
|
expires 1M;
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue