From d54bba4c592f4de57a1bb93ab8a81d3b42704e99 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Wed, 3 Jun 2026 20:08:07 +0300 Subject: [PATCH] update forgejo server settings --- forgejo.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/forgejo.nix b/forgejo.nix index 54522c2..297738f 100644 --- a/forgejo.nix +++ b/forgejo.nix @@ -11,6 +11,8 @@ server = { ROOT_URL = "https://git.${domainName}/"; PROTOCOL = "http"; + HTTP_ADDR = "127.0.0.1"; + HTTP_PORT = 3000; DOMAIN = "git.${domainName}"; SSH_PORT = 2222; START_SSH_SERVER = true; @@ -36,8 +38,10 @@ ''; locations = { "/" = { - proxyPass = "http://localhost:3000"; + proxyPass = "http://127.0.0.1:3000"; extraConfig = '' + proxy_set_header Connection $http_connection; + proxy_set_header Upgrade $http_upgrade; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;