reformatting ldap.nix
This commit is contained in:
parent
a15b04b42d
commit
dc6197d138
1 changed files with 55 additions and 47 deletions
|
@ -31,7 +31,7 @@ in
|
||||||
user = "${portunusUser}";
|
user = "${portunusUser}";
|
||||||
group = "${portunusGroup}";
|
group = "${portunusGroup}";
|
||||||
domain = "${domain}";
|
domain = "${domain}";
|
||||||
port = 8081;
|
port = 8681;
|
||||||
userRegex = "[a-z_][a-z0-9_.-]*\$?";
|
userRegex = "[a-z_][a-z0-9_.-]*\$?";
|
||||||
dex = {
|
dex = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -45,11 +45,29 @@ in
|
||||||
|
|
||||||
# disables port 389, use 636 with tls
|
# disables port 389, use 636 with tls
|
||||||
# `portunus.domain` resolves to localhost
|
# `portunus.domain` resolves to localhost
|
||||||
tls = true;
|
# tls = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
seedPath = ../config/portunus_seeds.json;
|
seedPath = ../config/portunus_seeds.json;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
services = {
|
||||||
|
dex.settings.oauth2.skipApprovalScreen = true;
|
||||||
|
|
||||||
|
nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts."${config.services.portunus.domain}" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations = {
|
||||||
|
"/".proxyPass = "http://localhost:${toString config.services.portunus.port}";
|
||||||
|
"/dex".proxyPass = "http://localhost:${toString config.services.portunus.dex.port}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
systemd.services.dex.serviceConfig = {
|
systemd.services.dex.serviceConfig = {
|
||||||
DynamicUser = lib.mkForce false;
|
DynamicUser = lib.mkForce false;
|
||||||
EnvironmentFile = config.sops.secrets."dex/environment".path;
|
EnvironmentFile = config.sops.secrets."dex/environment".path;
|
||||||
|
@ -135,16 +153,6 @@ in
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.nginx = {
|
|
||||||
enable = true;
|
|
||||||
virtualHosts."${config.services.portunus.domain}" = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
locations = {
|
|
||||||
"/".proxyPass = "http://localhost:${toString config.services.portunus.port}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(self: super:
|
(self: super:
|
||||||
{
|
{
|
||||||
|
@ -153,7 +161,7 @@ in
|
||||||
owner = "revol-xut";
|
owner = "revol-xut";
|
||||||
repo = "portunus";
|
repo = "portunus";
|
||||||
rev = "c95528e21782b3477203bc29fc85515f2cb8c8cb";
|
rev = "c95528e21782b3477203bc29fc85515f2cb8c8cb";
|
||||||
sha256 = "";
|
sha256 = "sha256-CmH0HKr+pNDnw0qfDucQrCixFg7Yh8r7Rt7v9+6pNXc=";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue