From 7c4ce3a545fb74ab1eb35c02de9ace3c3dbae2ef Mon Sep 17 00:00:00 2001 From: stuebinm Date: Wed, 22 Mar 2023 18:34:32 +0100 Subject: a glitchtip module, because why not in case i ever think i need such a thing, i guess --- ilex/configuration.nix | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'ilex/configuration.nix') diff --git a/ilex/configuration.nix b/ilex/configuration.nix index 2b07092..ec1f856 100644 --- a/ilex/configuration.nix +++ b/ilex/configuration.nix @@ -7,6 +7,7 @@ { imports = [ ./hardware-configuration.nix + ../modules/glitchtip.nix ]; networking.firewall.allowedTCPPorts = [ 5000 ]; @@ -52,22 +53,17 @@ ''; }; - services.uwsgi = { + services.glitchtip = { enable = true; - plugins = [ "python3" ]; - instance = { - type = "normal"; - pythonPackages = self: [ pkgs.glitchtip ]; - module = "glitchtip.wsgi:application"; - chdir = pkgs.glitchtip; - http = ":8080"; - env = [ - "DATABASE_URL=postgres://glitchtrip@localhost:5432/glitchtrip" - ]; - }; + databaseUrl = "postgres://glitchtrip@localhost:5432/glitchtrip"; + }; + services.redis.servers.glitchtip = { + enable = true; + port = 6379; }; + services.tlp = { enable = true; settings = { -- cgit v1.2.3