tangled
alpha
login
or
join now
wiro.world
/
dotfiles
2
fork
atom
yep, more dotfiles
2
fork
atom
overview
issues
1
pulls
1
pipelines
server: add goatcounter
wiro.world
4 months ago
15e00e0e
e147f62c
verified
This commit was signed with the committer's
known signature
.
wiro.world
SSH Key Fingerprint:
SHA256:SmMcWpNAnL+VAgItSawvXgdPVn7f1rsyAuB/5VNclKY=
+22
1 changed file
expand all
collapse all
unified
split
nixos
profiles
server.nix
+22
nixos/profiles/server.nix
···
73
73
matrix-port = 3009;
74
74
matrix-hostname = "matrix.wiro.world";
75
75
76
76
+
goatcounter-port = 3010;
77
77
+
goatcounter-hostname = "stats.wiro.world";
78
78
+
76
79
prometheus-port = 9001;
77
80
prometheus-node-exporter-port = 9002;
78
81
headscale-metrics-port = 9003;
···
187
190
}
188
191
'' +
189
192
''
193
193
+
log {
194
194
+
level INFO
195
195
+
format console
196
196
+
output file /tmp/access-wiro.world.log
197
197
+
}
198
198
+
'' +
199
199
+
''
190
200
reverse_proxy /.well-known/matrix/* http://localhost:${toString matrix-port}
191
201
'' +
192
202
''
···
233
243
234
244
virtualHosts.${matrix-hostname}.extraConfig = ''
235
245
reverse_proxy /_matrix/* http://localhost:${toString matrix-port}
246
246
+
'';
247
247
+
248
248
+
virtualHosts.${goatcounter-hostname}.extraConfig = ''
249
249
+
reverse_proxy http://localhost:${toString goatcounter-port}
236
250
'';
237
251
};
238
252
···
496
510
allow_registration = true;
497
511
registration_token_file = config.age.secrets.tuwunel-registration-tokens.path;
498
512
};
513
513
+
};
514
514
+
515
515
+
services.goatcounter = {
516
516
+
enable = true;
517
517
+
518
518
+
port = goatcounter-port;
519
519
+
proxy = true;
520
520
+
extraArgs = [ "-automigrate" ];
499
521
};
500
522
};
501
523
}