fix plausible
This commit is contained in:
parent
6546b000a1
commit
a54f25d863
2 changed files with 16 additions and 1 deletions
|
|
@ -48,7 +48,19 @@
|
|||
services.nginx.virtualHosts."xyno.space" = {
|
||||
locations."/".proxyPass = "http://[::1]${config.services.xynoblog.listen}";
|
||||
locations."/gyakapyukawfyuokfgwtyutf.js".proxyPass = "http://127.0.0.1:${toString config.services.plausible.server.port}/js/plausible.outbound-links.js";
|
||||
locations."/api/event".proxyPass = "http://127.0.0.1:${toString config.services.plausible.server.port}";
|
||||
locations."= /api/event" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.plausible.server.port}/api/event";
|
||||
recommendedProxySettings = false;
|
||||
extraConfig = ''
|
||||
proxy_set_header Host stats.xyno.space;
|
||||
proxy_buffering on;
|
||||
proxy_http_version 1.1;
|
||||
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
'';
|
||||
};
|
||||
} // (lib.my.findOutTlsConfig "xyno.space" config);
|
||||
|
||||
services.lolpizza2.enable = true;
|
||||
|
|
|
|||
|
|
@ -17,6 +17,9 @@ in {
|
|||
"GOOGLE_CLIENT_ID:${config.age.secrets.plausibleGoogleClientId.path}"
|
||||
"GOOGLE_CLIENT_SECRET:${config.age.secrets.plausibleGoogleClientSecret.path}"
|
||||
];
|
||||
systemd.services.plausible.environment = {
|
||||
IP_GEOLOCATION_DB = "${pkgs.unstable.dbip-country-lite}/share/dbip/dbip-country-lite.mmdb";
|
||||
};
|
||||
services.plausible = {
|
||||
enable = true;
|
||||
releaseCookiePath = config.age.secrets.plausibleSecretKeybase.path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue