feat(compute01): init pages server #151
1 changed files with 73 additions and 63 deletions
|
@ -36,7 +36,18 @@ let
|
|||
in
|
||||
|
||||
{
|
||||
options.services.nginx.virtualHosts = lib.mkOption {
|
||||
type = lib.types.attrsOf (
|
||||
Luj marked this conversation as resolved
Outdated
|
||||
lib.types.submodule {
|
||||
config.extraConfig = ''
|
||||
real_ip_header proxy_protocol;
|
||||
set_real_ip_from 127.0.0.1;
|
||||
'';
|
||||
}
|
||||
);
|
||||
Luj marked this conversation as resolved
Outdated
thubrecht
commented
`getExe package`
|
||||
};
|
||||
|
||||
config = {
|
||||
systemd.services.codeberg-pages = {
|
||||
Luj marked this conversation as resolved
Outdated
thubrecht
commented
C'est strictement égal à C'est strictement égal à `lib.getExe package`
|
||||
inherit environment;
|
||||
description = "Codeberg pages server";
|
||||
|
@ -81,6 +92,7 @@ in
|
|||
ssl = false;
|
||||
}
|
||||
];
|
||||
|
||||
streamConfig = ''
|
||||
map $ssl_preread_server_name $sni_upstream {
|
||||
default 127.0.0.1:8010;
|
||||
|
@ -97,9 +109,7 @@ in
|
|||
proxy_pass $sni_upstream;
|
||||
proxy_protocol on;
|
||||
}
|
||||
|
||||
'';
|
||||
defaultSSLListenPort = 8446;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue
Autant appeler directement la variable
environment
, comme ça tu peux faire un inherit et c'est plus clair dans le ``let ... in