Home Explore Blog Models 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
5ed8954a (1st chunk of `nixos/modules/services/web-apps/plausible.md`)
Title: Plausible Analytics Configuration
Summary
This chunk introduces Plausible as a privacy-friendly alternative to Google Analytics. It provides basic instructions for its deployment, which involve generating a secret key using `openssl` and then configuring the `services.plausible` module with the generated secret key file path and the `baseUrl`.