From 030ccf76cad8afcc9484361644a85c904275b9ef Mon Sep 17 00:00:00 2001 From: Max Audron Date: Fri, 14 Nov 2025 19:10:26 +0100 Subject: move git hosting to plain git-shell and cgit reject modernity, embrace linus --- modules/garage/default.nix | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'modules/garage') diff --git a/modules/garage/default.nix b/modules/garage/default.nix index 595b004..56a38c2 100644 --- a/modules/garage/default.nix +++ b/modules/garage/default.nix @@ -1,4 +1,10 @@ -{ self, config, lib, pkgs, ... }: +{ + self, + config, + lib, + pkgs, + ... +}: with self.lib.nginx; { @@ -56,8 +62,24 @@ with self.lib.nginx; "s3.vapor.systems" = (proxyDomain "vapor.systems" "http://127.0.0.1:3900/"); "web.vapor.systems" = (proxyDomain "vapor.systems" "http://127.0.0.1:3902/"); "gnulag.net" = (proxyDomain "gnulag.net" "http://127.0.0.1:3902/"); - # "linuxmasterrace.org" = (proxyDomain "linuxmasterrace.org" "http://127.0.0.1:3902/"); - # "dash.linuxmasterrace.org" = (proxyDomain "linuxmasterrace.org" "http://127.0.0.1:3902/"); + + "cdn.vapor.systems" = { + forceSSL = true; + useACMEHost = "vapor.systems"; + locations."/" = { + proxyPass = "http://127.0.0.1:3902/"; + extraConfig = '' + proxy_pass_header Authorization; + + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $host; + proxy_set_header Upgrade $http_upgrade; + + add_header 'access-control-allow-origin' '*'; + ''; + }; + }; }; }; } -- cgit v1.2.3