diff --git a/server/docker.nix b/server/docker.nix index 0fa2cc7..9de7c7b 100644 --- a/server/docker.nix +++ b/server/docker.nix @@ -42,13 +42,13 @@ }; ryot = { image = "ghcr.io/ignisda/ryot:latest"; + ports = [ "8765:8000" ]; environment = { TZ = "America/Mexico_City"; DATABASE_URL = "postgres:///ryot?host=${postgresSocket}"; VIDEO_GAMES_TWITCH_CLIENT_ID = "tfu0hw0zbdbu4lco4h72nqkb8krxp9"; VIDEO_GAMES_TWITCH_CLIENT_SECRET = "582ecfb01ihv6wnt8zbc9pf3hs9p54"; }; - ports = [ "8765:8000" ]; volumes = [ "${postgresSocket}:${postgresSocket}" ]; labels = { "flame.type" = "application"; diff --git a/server/servers.nix b/server/servers.nix index 13e7a55..f0f0432 100644 --- a/server/servers.nix +++ b/server/servers.nix @@ -226,6 +226,13 @@ in { host all all ${localhost}/32 trust host all all ::1/128 trust ''; + settings = { + dynamic_shared_memory_type = "posix"; + max_connections = 100; + max_wal_size = "1GB"; + min_wal_size = "80MB"; + shared_buffers = "128MB"; + }; }; }; systemd = {