From 2da3b941a5458c7202c113c843c0b9c04a04d3bf Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 5 Jan 2025 15:50:07 +0400 Subject: [PATCH] man --- modules/server/services/forgejo/pages.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/server/services/forgejo/pages.nix b/modules/server/services/forgejo/pages.nix index de66244f..b9f76a61 100644 --- a/modules/server/services/forgejo/pages.nix +++ b/modules/server/services/forgejo/pages.nix @@ -132,10 +132,18 @@ in { services.nginx.virtualHosts = { "pages.sako.lol" = { + forceSSL = true; locations."/" = { proxyPass = "http://localhost:4563"; }; + extraConfig = '' + ssl_preread on; + ''; }; "*.pages.sako.lol" = { + forceSSL = true; locations."/" = { proxyPass = "http://localhost:4563"; }; + extraConfig = '' + ssl_preread on; + ''; }; }; };