From 6efc6e012fbbe9ea2ab08ba13c045e942c721645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Sun, 11 Aug 2024 11:10:15 +0200 Subject: [PATCH] fix(sourcehut): gitsrht & mansrht: listen on ipv6 as well as ipv4 --- nixos/configuration.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 31978f3..460e210 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -226,8 +226,6 @@ in # enable selfhosted sourcehut instance services.sourcehut = { enable = true; - git.enable = true; - man.enable = true; meta = { enable = true; gunicorn.extraArgs = [ @@ -237,6 +235,24 @@ in "--bind [::1]:5000" ]; }; + git = { + enable = true; + gunicorn.extraArgs = [ + "--timeout 120" + "--workers 1" + "--log-level=info" + "--bind [::1]:5000" + ]; + }; + man = { + enable = true; + gunicorn.extraArgs = [ + "--timeout 120" + "--workers 1" + "--log-level=info" + "--bind [::1]:5000" + ]; + }; nginx.enable = true; postgresql.enable = true; redis.enable = true;