From 85a61fddc6f69bd63a521443c2681813a32f72f3 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 1 Oct 2023 13:37:21 -0600 Subject: [PATCH] [NixOS] Trying to get tls working for gitea --- nixos/gitea.nix | 19 +++++++++++++++++++ nixos/machines/biskcomp.nix | 3 --- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/nixos/gitea.nix b/nixos/gitea.nix index 07caf9fd..09ffd93a 100644 --- a/nixos/gitea.nix +++ b/nixos/gitea.nix @@ -7,9 +7,28 @@ makeEnable config "modules.gitea" false { settings.server = { DOMAIN = "1896Folsom.duckdns.org"; SSH_PORT = 1123; + HTTP_PORT = 3000; }; settings.actions = { ENABLED = true; }; }; + + services.nginx = { + enable = true; + virtualHosts = { + "1896Folsom.duckdns.org:3001" = { + enableACME = true; + listen = [{ + addr = "0.0.0.0"; + port = 3001; + }]; + # enableACME = true; + # forceSSL = true; + locations."/" = { + proxyPass = "http://localhost:3000"; + }; + }; + }; + }; } diff --git a/nixos/machines/biskcomp.nix b/nixos/machines/biskcomp.nix index f2f547ca..45f90ece 100644 --- a/nixos/machines/biskcomp.nix +++ b/nixos/machines/biskcomp.nix @@ -52,9 +52,6 @@ in locations."/" = { proxyPass = "http://[::1]:8222"; }; - # listen = [ - # { addr = "0.0.0.0"; port = 8443; } - # ]; }; }; };