diff --git a/nixos/boxes/vpsfree1/gitea.nix b/nixos/boxes/vpsfree1/gitea.nix index 8f362b59..aaca6547 100644 --- a/nixos/boxes/vpsfree1/gitea.nix +++ b/nixos/boxes/vpsfree1/gitea.nix @@ -39,7 +39,7 @@ in { forceSSL = true; enableACME = true; locations."/" = { - proxyPass = "http://localhost:" + toString httpPort; + proxyPass = "http://127.0.0.1:" + toString httpPort; }; }; }; @@ -84,9 +84,7 @@ in { imports = [ "${inputs.nixpkgs-stable}/nixos/modules/services/misc/gitea.nix" ]; services.gitea = { - inherit domain httpPort; enable = true; - rootUrl = baseurl; stateDir = path; user = systemUserName; mailerPasswordFile = mailgunSmtpPasswordPath; @@ -102,11 +100,13 @@ in { IS_INPUT_FILE = false; }; server = { + ROOT_URL = baseurl; + DOMAIN = domain; START_SSH_SERVER = true; SSH_PORT = sshPort; + HTTP_PORT = httpPort; SSH_LISTEN_PORT = sshPort; DISABLE_SSH = false; - LFS_START_SERVER = true; }; mailer = { ENABLED = true;