From bcc1c9edf2b48864b975ca2b18c24dbd04801ed8 Mon Sep 17 00:00:00 2001 From: Thary Date: Wed, 12 Nov 2025 19:46:51 +0300 Subject: [PATCH] a --- module.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/module.nix b/module.nix index eee423b..2926040 100644 --- a/module.nix +++ b/module.nix @@ -96,7 +96,6 @@ in enable = true; database.type = "sqlite3"; host = "${cfg.subdomain}.${sp.domain}"; - nginx.enable = true; settings = { server.port = 8081; app = { @@ -144,6 +143,16 @@ in }; }; + services.nginx.virtualHosts."${cfg.subdomain}.${sp.domain}" = { + useACMEHost = sp.domain; + forceSSL = true; + locations = { + "/" = { + proxyPass = "http://127.0.0.1:8081"; + }; + }; + }; + selfprivacy.auth.clients.${oauthClientID} = { inherit usersGroup; subdomain = cfg.subdomain;