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; + ''; }; }; };