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