mirror of https://gitlab.crans.org/nounous/nixos
75 lines
1.5 KiB
Nix
75 lines
1.5 KiB
Nix
# A virtual host for the reverseproxy
|
|
{ lib, ... }:
|
|
let
|
|
inherit (lib) mkOption types;
|
|
in
|
|
{
|
|
options = {
|
|
|
|
aliases = mkOption {
|
|
type = types.listOf types.str;
|
|
default = [ ];
|
|
description = ''
|
|
Définit des alias de redirection.
|
|
'';
|
|
example = [
|
|
"everything"
|
|
"voyager"
|
|
];
|
|
};
|
|
|
|
proxyPass = mkOption {
|
|
type = types.nullOr types.str;
|
|
default = null;
|
|
description = ''
|
|
Endpoint de destination à exposer.
|
|
'';
|
|
example = "172.16.10.128:8000";
|
|
};
|
|
|
|
serveLocalFiles = mkOption {
|
|
type = types.nullOr types.path;
|
|
default = null;
|
|
description = ''
|
|
Chemin vers un dossier à exposer statiquement.
|
|
'';
|
|
example = "/var/local/www";
|
|
};
|
|
|
|
globalRedirect = mkOption {
|
|
type = types.nullOr types.str;
|
|
default = null;
|
|
description = ''
|
|
Redirection vers une autre adresse.
|
|
'';
|
|
};
|
|
|
|
anubisConfig = mkOption {
|
|
type = types.nullOr (types.listOf types.attrs);
|
|
default = null;
|
|
description = ''
|
|
Configuration pour anubis
|
|
'';
|
|
};
|
|
|
|
httpOnly = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = ''
|
|
Interdit les connexions en https
|
|
'';
|
|
example = "true";
|
|
};
|
|
|
|
proxyWebsockets = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = ''
|
|
Activer les websockets
|
|
'';
|
|
example = "true";
|
|
};
|
|
|
|
};
|
|
}
|