From 85dbccbacb4f84b895d1041e1a6cf9bfeb9d29fb Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sat, 6 May 2023 10:28:31 -0700 Subject: [PATCH] enabled local-network administration --- hosts/Alaska/default.nix | 2 +- hosts/Alaska/modules/forgejo.nix | 4 ++-- hosts/Alaska/modules/nginx.nix | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hosts/Alaska/default.nix b/hosts/Alaska/default.nix index c295eb9..3369cfe 100644 --- a/hosts/Alaska/default.nix +++ b/hosts/Alaska/default.nix @@ -33,7 +33,7 @@ }; firewall = { enable = true; - allowedTCPPorts = [80 443]; + allowedTCPPorts = [80 443 3001]; # port 3001 opened to allow git traffic on the local netword }; }; diff --git a/hosts/Alaska/modules/forgejo.nix b/hosts/Alaska/modules/forgejo.nix index 7c315c8..bc62072 100644 --- a/hosts/Alaska/modules/forgejo.nix +++ b/hosts/Alaska/modules/forgejo.nix @@ -10,9 +10,9 @@ #ui.DEFAULT_THEME = "arc-green"; # Enable this after the first user has been created - #service.DISABLE_REGISTRATION = true; + service.DISABLE_REGISTRATION = true; - session.COOKIE_SECURE = true; + #session.COOKIE_SECURE = true; # external facing ui server = { ROOT_URL = "https://git.nickiel.net"; diff --git a/hosts/Alaska/modules/nginx.nix b/hosts/Alaska/modules/nginx.nix index 8ddfdf6..135063a 100644 --- a/hosts/Alaska/modules/nginx.nix +++ b/hosts/Alaska/modules/nginx.nix @@ -42,6 +42,7 @@ enableACME = true; locations."/".proxyPass = "http://127.0.0.1:3001"; }; + }; }; }