diff options
| author | Max Audron <audron@cocaine.farm> | 2025-11-14 19:10:26 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2025-11-14 19:10:26 +0100 |
| commit | 030ccf76cad8afcc9484361644a85c904275b9ef (patch) | |
| tree | b952edadef77a482fe106130d3790fede82049fd /modules/garage | |
| parent | fix slskd stuff (diff) | |
move git hosting to plain git-shell and cgit
reject modernity, embrace linus
Diffstat (limited to '')
| -rw-r--r-- | modules/garage/default.nix | 28 |
1 files changed, 25 insertions, 3 deletions
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' '*'; + ''; + }; + }; }; }; } |
