nixos/modules/info/reverseproxy.nix

30 lines
715 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Info des endpoints à Reverseproxy
# Ne pas confondre avec ../services/reverseproxy.nix qui
# définit le service de reverseproxy à proprement parlé
# Les options font parties d’évaluation différentes et ne sont donc pas
# conflictuelles.
{ lib, ... }:
let
inherit (lib) mkOption types;
in
{
options.reverseproxy = {
vhosts = mkOption {
type = types.attrsOf (types.submodule ./reverseproxyVhost.nix);
description = ''
Hosts virtuels à reverseproxer.
'';
default = { };
example = {
"framadate" = {
host = "176.16.10.128:8000";
aliases = [
"everything"
"voyager"
];
};
};
};
};
}