l orange.r: add git/cgit
This commit is contained in:
parent
8e4d0b73e8
commit
b2eb88a67e
@ -6,10 +6,13 @@ with import <stockholm/lib>;
|
|||||||
<stockholm/lass/2configs>
|
<stockholm/lass/2configs>
|
||||||
<stockholm/lass/2configs/retiolum.nix>
|
<stockholm/lass/2configs/retiolum.nix>
|
||||||
<stockholm/lass/2configs/mumble-reminder.nix>
|
<stockholm/lass/2configs/mumble-reminder.nix>
|
||||||
|
<stockholm/lass/2configs/services/git>
|
||||||
];
|
];
|
||||||
|
|
||||||
krebs.build.host = config.krebs.hosts.orange;
|
krebs.build.host = config.krebs.hosts.orange;
|
||||||
|
|
||||||
|
services.nginx.enable = true;
|
||||||
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults.email = "acme@lassul.us";
|
defaults.email = "acme@lassul.us";
|
||||||
|
11
lass/2configs/services/git/default.nix
Normal file
11
lass/2configs/services/git/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
13
lass/2configs/services/git/proxy.nix
Normal file
13
lass/2configs/services/git/proxy.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user