diff options
Diffstat (limited to 'ilex')
-rw-r--r-- | ilex/configuration.nix | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/ilex/configuration.nix b/ilex/configuration.nix index 6599cd4..2b07092 100644 --- a/ilex/configuration.nix +++ b/ilex/configuration.nix @@ -33,19 +33,41 @@ services.postgresql = { enable = true; - ensureDatabases = [ "tracktrain" ]; + ensureDatabases = [ "tracktrain" "glitchtrip" ]; ensureUsers = [ { name = "tracktrain"; ensurePermissions = { "DATABASE tracktrain" = "ALL PRIVILEGES"; }; + } { + name = "glitchtrip"; + ensurePermissions = { + "DATABASE glitchtrip" = "ALL PRIVILEGES"; + }; } ]; authentication = '' local all all trust host all all 127.0.0.1/32 trust + host all all ::1/127 trust ''; }; + services.uwsgi = { + 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" + ]; + }; + }; + + services.tlp = { enable = true; settings = { |