feat: google support for plausible
This commit is contained in:
parent
c9758ba2f7
commit
3385de5cbb
6 changed files with 31 additions and 1 deletions
|
|
@ -52,7 +52,7 @@
|
|||
enableACME = true;
|
||||
forceSSL = true;
|
||||
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.js";
|
||||
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}";
|
||||
};
|
||||
services.lolpizza2.enable = true;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ in {
|
|||
ragon.agenix.secrets."plausibleAdminPw" = { };
|
||||
ragon.agenix.secrets."plausibleReleaseCookie" = { };
|
||||
ragon.agenix.secrets."plausibleSecretKeybase" = { };
|
||||
ragon.agenix.secrets."plausibleGoogleClientId" = { };
|
||||
ragon.agenix.secrets."plausibleGoogleClientSecret" = { };
|
||||
ragon.agenix.secrets."smtpPassword" = { };
|
||||
services.nginx.virtualHosts.${domain} = {
|
||||
forceSSL = true;
|
||||
|
|
@ -11,6 +13,10 @@ in {
|
|||
locations."/".proxyPass =
|
||||
"http://127.0.0.1:${toString config.services.plausible.server.port}";
|
||||
};
|
||||
systemd.services.plausible.serviceConfig.LoadCredential = [
|
||||
"GOOGLE_CLIENT_ID:${config.age.secrets.plausibleGoogleClientId.path}"
|
||||
"GOOGLE_CLIENT_SECRET:${config.age.secrets.plausibleGoogleClientSecret.path}"
|
||||
];
|
||||
services.plausible = {
|
||||
enable = true;
|
||||
releaseCookiePath = config.age.secrets.plausibleSecretKeybase.path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue