diff --git a/example/lemonldap-ng.nomad.hcl b/example/lemonldap-ng.nomad.hcl index 7efaddf..e9fe286 100644 --- a/example/lemonldap-ng.nomad.hcl +++ b/example/lemonldap-ng.nomad.hcl @@ -159,6 +159,8 @@ job "lemonldap-ng" { LLNG_CUSTOM_ASSETS_DIR = "/local/assets" } + + # Use a template block instead of env {} so we can fetch values from vault template { data = <<_EOT @@ -180,7 +182,7 @@ logLevel = notice localSessionStorage = Cache::FileCache localSessionStorageOptions = { \ 'namespace' => 'sessions', \ - 'default_expires_in' => '300', \ + 'default_expires_in' => '60', \ 'directory_umask' => '007', \ 'cache_root' => '/tmp', \ 'cache_depth' => 3 \ @@ -237,7 +239,7 @@ dbiChain = DBI:Pg: localStorage = Cache::FileCache localStorageOptions = { \ 'namespace' => 'config', \ - 'default_expires_in' => '600', \ + 'default_expires_in' => '60', \ 'directory_umask' => '007', \ 'cache_root' => '/tmp', \ 'cache_depth' => 0 \ diff --git a/templates/lemonldap-ng.ini.tpl b/templates/lemonldap-ng.ini.tpl index 3a88420..cbfda70 100644 --- a/templates/lemonldap-ng.ini.tpl +++ b/templates/lemonldap-ng.ini.tpl @@ -3,7 +3,7 @@ logLevel = [[ .llng.engine.log_level ]] localSessionStorage = Cache::FileCache localSessionStorageOptions = { \ 'namespace' => 'sessions', \ - 'default_expires_in' => '300', \ + 'default_expires_in' => '60', \ 'directory_umask' => '007', \ 'cache_root' => '/tmp', \ 'cache_depth' => 3 \ @@ -36,7 +36,7 @@ dbiChain = DBI:Pg: localStorage = Cache::FileCache localStorageOptions = { \ 'namespace' => 'config', \ - 'default_expires_in' => '600', \ + 'default_expires_in' => '60', \ 'directory_umask' => '007', \ 'cache_root' => '/tmp', \ 'cache_depth' => 0 \