System Gen28 @ 2026-08-08-01:06:03 by jonas@harbor
This commit is contained in:
@@ -48,17 +48,17 @@
|
||||
};
|
||||
|
||||
# Virtual host for korrosync
|
||||
services.nginx.virtualHosts."${cfg.instanceFQDN}" =
|
||||
{
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString cfg.localPort}";
|
||||
};
|
||||
}
|
||||
// (lib.optionalAttrs cfg.blockUserCreation {
|
||||
locations."/users/create".return = 403;
|
||||
});
|
||||
services.nginx.virtualHosts."${cfg.instanceFQDN}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations =
|
||||
{
|
||||
"/".proxyPass = "http://127.0.0.1:${toString cfg.localPort}";
|
||||
}
|
||||
// (lib.optionalAttrs cfg.blockUserCreation {
|
||||
"/users/create".return = 403;
|
||||
});
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user