From 7a488636f4cc63d0977dfbee37770aa218d653f4 Mon Sep 17 00:00:00 2001 From: rndusr Date: Tue, 22 Oct 2024 08:22:06 -0500 Subject: [PATCH] add gitea and nginx --- boxes/netbox/gitea.nix | 3 +++ boxes/netbox/nginx.nix | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/boxes/netbox/gitea.nix b/boxes/netbox/gitea.nix index 9977216..990526e 100644 --- a/boxes/netbox/gitea.nix +++ b/boxes/netbox/gitea.nix @@ -39,5 +39,8 @@ locations."/" = { proxyPass = "http://localhost:3001"; }; + locations."/bridge" = { + proxyPass = "http://localhost:5000"; + }; }; } diff --git a/boxes/netbox/nginx.nix b/boxes/netbox/nginx.nix index 5db3d31..50141bc 100644 --- a/boxes/netbox/nginx.nix +++ b/boxes/netbox/nginx.nix @@ -16,6 +16,18 @@ }; }; + services.nginx.virtualHosts."tfb.beepboop.systems" = { + forceSSL = true; + enableACME = true; + root = "/var/www/tfb.beepboop.systems"; + locations."/" = { + extraConfig = '' + port_in_redirect off; + absolute_redirect off; + ''; + }; + }; + security.acme = { acceptTerms = true; defaults.email = "nickforanick@protonmail.com";