Fix env location for lldap

This commit is contained in:
IamTheFij 2022-11-15 16:54:37 -08:00
parent 8a21dd7eb4
commit 12b91e9566

View File

@ -92,11 +92,6 @@ job "lldap" {
source = "secrets/lldap_config.toml" source = "secrets/lldap_config.toml"
target = "/lldap_config.toml" target = "/lldap_config.toml"
} }
env = {
"LLDAP_LDAP_PORT" = "${NOMAD_PORT_ldap}"
"LLDAP_HTTP_PORT" = "${NOMAD_PORT_web}"
}
} }
vault { vault {
@ -106,6 +101,11 @@ job "lldap" {
] ]
} }
env = {
"LLDAP_LDAP_PORT" = "${NOMAD_PORT_ldap}"
"LLDAP_HTTP_PORT" = "${NOMAD_PORT_web}"
}
template { template {
data = <<EOH data = <<EOH
database_url = "sqlite:///data/users.db?mode=rwc" database_url = "sqlite:///data/users.db?mode=rwc"