From b2eb88a67e771a93efead57ec13cb9c00e118d62 Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 14 Mar 2023 06:34:12 +0100 Subject: l orange.r: add git/cgit --- lass/2configs/services/git/default.nix | 11 +++++++++++ lass/2configs/services/git/proxy.nix | 13 +++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 lass/2configs/services/git/default.nix create mode 100644 lass/2configs/services/git/proxy.nix (limited to 'lass/2configs') diff --git a/lass/2configs/services/git/default.nix b/lass/2configs/services/git/default.nix new file mode 100644 index 000000000..096f73c03 --- /dev/null +++ b/lass/2configs/services/git/default.nix @@ -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; + }; +} diff --git a/lass/2configs/services/git/proxy.nix b/lass/2configs/services/git/proxy.nix new file mode 100644 index 000000000..cb05c3f6c --- /dev/null +++ b/lass/2configs/services/git/proxy.nix @@ -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; + }; + }; +} -- cgit v1.2.3