Home Explore Blog CI



nixpkgs

nixos/modules/services/web-apps/plausible.md
c60c675d75d65cd0610bf6f66e678680ccce03ab25651a9200000003000002b4
# Plausible {#module-services-plausible}

[Plausible](https://plausible.io/) is a privacy-friendly alternative to
Google analytics.

## Basic Usage {#module-services-plausible-basic-usage}

At first, a secret key is needed to be generated. This can be done with e.g.
```ShellSession
$ openssl rand -base64 64
```

After that, `plausible` can be deployed like this:
```nix
{
  services.plausible = {
    enable = true;
    server = {
      baseUrl = "http://analytics.example.org";
      # secretKeybaseFile is a path to the file which contains the secret generated
      # with openssl as described above.
      secretKeybaseFile = "/run/secrets/plausible-secret-key-base";
    };
  };
}
```

Chunks
63a57604 (1st chunk of `nixos/modules/services/web-apps/plausible.md`)
Title: Plausible Analytics Module
Summary
This section describes how to enable and configure the Plausible Analytics service, a privacy-friendly alternative to Google Analytics, within a NixOS system. It details the process of generating a secret key using OpenSSL and configuring the service with the base URL and the path to the secret key file.