robjuz / helm-charts

https://robjuz.github.io/helm-charts/index.yaml
34 stars 30 forks source link

kimai2: add option to override php.ini #32

Closed macmoritz closed 1 year ago

macmoritz commented 1 year ago

PHPs default session timeout is set to 1440s/24m. To change this we need to override the php.ini file located in /usr/local/etc/php/php.ini in the kimai2 pod.

Implement an option in values.yaml to provide the php.ini config.

I will provide an pull request.

robjuz commented 1 year ago

Hallo @macmoritz

Is this equivalent to setting the remember_me lifetime ?



configuration: -|
  security:
    firewalls:
        secured_area:
            remember_me:
                lifetime: 7776000
macmoritz commented 1 year ago

Hi @robjuz I dont find any docs to this configuration. The kimai option (following) to set the session timeout does not take effect in your chart. (https://www.kimai.org/documentation/local-yaml.html#session-lifetime)

framework:
    session:
        gc_maxlifetime: 3600
        cookie_lifetime: 3600
robjuz commented 1 year ago

https://symfony.com/doc/current/security/remember_me.html

macmoritz commented 1 year ago

Hi there. Thanks for your response. I dont see where the security part of your example (first comment in here) is loaded. Further, there is still the default session timeout of 24m. Would be great if you can add additional informations.