From 3ece1b47a49b0a5567b0e8c366cc5d6c205b5fa9 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Thu, 4 Jul 2024 14:02:14 -0400 Subject: [PATCH] mauville: add initial ddclient and nginx configs for forgejo --- hosts/mauville/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hosts/mauville/default.nix b/hosts/mauville/default.nix index f73fff85..c4b9560e 100644 --- a/hosts/mauville/default.nix +++ b/hosts/mauville/default.nix @@ -46,6 +46,7 @@ in { # My router doesn't expose settings for NAT loopback # So we have to use this workaround. extraHosts = '' + 127.0.0.1 git.${domain} 127.0.0.1 music.${domain} 127.0.0.1 news.${domain} 127.0.0.1 nixcache.${domain} @@ -65,6 +66,7 @@ in { ddclient = { enable = true; domains = [ + "git.raffauflabs.com" "music.raffauflabs.com" "plex.raffauflabs.com" "podcasts.raffauflabs.com" @@ -88,6 +90,19 @@ in { recommendedTlsSettings = true; virtualHosts = { + # "git.${domain}" = { + # enableACME = true; + # forceSSL = true; + + # locations."/" = { + # proxyPass = "http://127.0.0.1:4533"; + # proxyWebsockets = true; + + # extraConfig = '' + # proxy_buffering off; + # ''; + # }; + # }; "music.${domain}" = { enableACME = true; forceSSL = true;