fix ldap
This commit is contained in:
@@ -27,7 +27,6 @@ in {
|
|||||||
server = builder.mkContainer {
|
server = builder.mkContainer {
|
||||||
subdomain = containerCfg.subdomain;
|
subdomain = containerCfg.subdomain;
|
||||||
image = "ghcr.io/goauthentik/server:${version}";
|
image = "ghcr.io/goauthentik/server:${version}";
|
||||||
port = 9000;
|
|
||||||
secret = name;
|
secret = name;
|
||||||
extraEnv = {
|
extraEnv = {
|
||||||
AUTHENTIK_REDIS__HOST = builder.host;
|
AUTHENTIK_REDIS__HOST = builder.host;
|
||||||
@@ -47,7 +46,6 @@ in {
|
|||||||
};
|
};
|
||||||
overrides = {
|
overrides = {
|
||||||
cmd = [ "server" ];
|
cmd = [ "server" ];
|
||||||
ports = if containerCfg.port!=null then [ "${toString containerCfg.port}:9000" ] else [];
|
|
||||||
volumes = [
|
volumes = [
|
||||||
"${serverCfg.configPath}/authentik/media:/media"
|
"${serverCfg.configPath}/authentik/media:/media"
|
||||||
"${serverCfg.configPath}/authentik/templates:/templates"
|
"${serverCfg.configPath}/authentik/templates:/templates"
|
||||||
@@ -82,7 +80,7 @@ in {
|
|||||||
image = "ghcr.io/goauthentik/ldap:${version}";
|
image = "ghcr.io/goauthentik/ldap:${version}";
|
||||||
secret = name;
|
secret = name;
|
||||||
extraEnv = {
|
extraEnv = {
|
||||||
"AUTHENTIK_HOST" = "http://${builder.host}:9000";
|
"AUTHENTIK_HOST" = "http://authentik-server:9000";
|
||||||
"AUTHENTIK_INSECURE" = "false";
|
"AUTHENTIK_INSECURE" = "false";
|
||||||
};
|
};
|
||||||
overrides = {
|
overrides = {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ entries:
|
|||||||
identifiers:
|
identifiers:
|
||||||
name: ldap-provider
|
name: ldap-provider
|
||||||
attrs:
|
attrs:
|
||||||
base_dn: "DC=ldap,@AUTHENTIK_LDAP_DC_DOMAIN@"
|
base_dn: "@AUTHENTIK_LDAP_DC_DOMAIN@"
|
||||||
search_group: null
|
search_group: null
|
||||||
authorization_flow:
|
authorization_flow:
|
||||||
!Find [
|
!Find [
|
||||||
|
|||||||
Reference in New Issue
Block a user