This commit is contained in:
mjallen18
2025-09-30 18:29:34 -05:00
parent ec23a7fe14
commit 751b4f9f69
37 changed files with 814 additions and 971 deletions

View File

@@ -44,7 +44,7 @@ in
# Example of using these functions together
nixosConfigurations = lib.mapAttrs' (
name:
_name:
{ system, hostname, ... }:
{
name = hostname;

View File

@@ -1,5 +1,5 @@
# Example usage of the reverse proxy utilities
{ inputs, lib, ... }:
{ lib, ... }:
let
inherit (lib.mjallen-lib.reverseproxy)
mkReverseProxy
@@ -89,11 +89,15 @@ in
domain = "example.com";
priority = 20;
rule = "Host(`custom.example.com`) && PathPrefix(`/api`)";
middlewares = [ "crowdsec" "whitelist-geoblock" "rate-limit" ];
middlewares = [
"crowdsec"
"whitelist-geoblock"
"rate-limit"
];
};
# Example usage in a Traefik configuration:
#
#
# mjallen.services.traefik = {
# enable = true;
# extraServices = multipleProxies.extraServices;

View File

@@ -19,7 +19,7 @@ in
nixosSystems = inputs.self.mjallen-lib.file.filterNixOSSystems allSystems;
in
inputs.nixpkgs.lib.mapAttrs' (
name:
_name:
{ system, hostname, ... }:
let
# Create extended lib with mjallen-lib
@@ -86,7 +86,7 @@ in
allHomes = inputs.self.mjallen-lib.file.scanHomes ../homes;
in
inputs.nixpkgs.lib.mapAttrs' (
name:
_name:
{
system,
username,