blob: 056c2ec75d5bd5399b1d80a8b59bef1b5a3a3b28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ config, pkgs, ... }:
{
services.nginx.virtualHosts."stats.emile.space" = {
forceSSL = true;
enableACME = true;
locations = {
"/" = {
proxyPass = "http://[::1]:${toString config.services.goatcounter.port}";
};
};
};
services.goatcounter = {
enable = true;
package = pkgs.goatcounter;
proxy = true;
address = "[::1]";
port = config.emile.ports.goatcounter;
};
}
|