yep, more dotfiles

server: add goatcounter

wiro.world 15e00e0e e147f62c

verified
+22
+22
nixos/profiles/server.nix
··· 73 73 matrix-port = 3009; 74 74 matrix-hostname = "matrix.wiro.world"; 75 75 76 + goatcounter-port = 3010; 77 + goatcounter-hostname = "stats.wiro.world"; 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 + log { 194 + level INFO 195 + format console 196 + output file /tmp/access-wiro.world.log 197 + } 198 + '' + 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 + ''; 247 + 248 + virtualHosts.${goatcounter-hostname}.extraConfig = '' 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 + }; 514 + 515 + services.goatcounter = { 516 + enable = true; 517 + 518 + port = goatcounter-port; 519 + proxy = true; 520 + extraArgs = [ "-automigrate" ]; 499 521 }; 500 522 }; 501 523 }