From 3445f451a002d63b788b373e467171f4229891b9 Mon Sep 17 00:00:00 2001 From: Sky Date: Thu, 29 Jan 2026 13:40:58 +0000 Subject: [PATCH] nginx: add website. --- modules/services/nignx.nix | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/modules/services/nignx.nix b/modules/services/nignx.nix index e9bd869..1c97b1e 100644 --- a/modules/services/nignx.nix +++ b/modules/services/nignx.nix @@ -5,6 +5,7 @@ enable = true; recommendedProxySettings = true; recommendedTlsSettings = true; + virtualHosts."git.colorsky.fun" = { forceSSL = true; useACMEHost = "colorsky.fun"; @@ -25,7 +26,30 @@ ''; }; - virtualHosts."192.168.68.59" = { }; + virtualHosts."ddns.colorsky.fun" = { + forceSSL = true; + useACMEHost = "colorsky.fun"; + + locations."/".proxyPass = "http://localhost:9876"; + + extraConfig = '' + listen [::]:8443 ssl; + ''; + }; + + virtualHosts."bot.colorsky.fun" = { + forceSSL = true; + useACMEHost = "colorsky.fun"; + + locations."/" = { + proxyPass = "http://localhost:23231"; + proxyWebsockets = true; + }; + extraConfig = '' + listen [::]:8443 ssl; + ''; + }; + }; security.acme = {