l orange.r: add git/cgit

This commit is contained in:
lassulus 2023-03-14 06:34:12 +01:00
parent 8e4d0b73e8
commit b2eb88a67e
3 changed files with 27 additions and 0 deletions

View File

@ -6,10 +6,13 @@ with import <stockholm/lib>;
<stockholm/lass/2configs>
<stockholm/lass/2configs/retiolum.nix>
<stockholm/lass/2configs/mumble-reminder.nix>
<stockholm/lass/2configs/services/git>
];
krebs.build.host = config.krebs.hosts.orange;
services.nginx.enable = true;
networking.firewall.allowedTCPPorts = [ 80 443 ];
security.acme = {
acceptTerms = true;
defaults.email = "acme@lassul.us";

View File

@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
{
imports = [
../../git.nix
];
services.nginx.virtualHosts."cgit.lassul.us" = {
enableACME = true;
addSSL = true;
locations = config.services.nginx.virtualHosts.cgit.locations;
};
}

View File

@ -0,0 +1,13 @@
{ config, pkgs, ... }:
{
services.nginx.virtualHosts."cgit.lassul.us" = {
forceSSL = true;
enableACME = true;
acmeFallbackHost = "orange.r";
locations."/" = {
proxyPass = "http://orange.r";
proxyWebsockets = true;
recommendedProxySettings = true;
};
};
}