Closed roelofz closed 1 month ago
@szaimen Is this 28-related, I am running 29.0.4 or?
Sorry, clicked the wrong label
Is there some progress on this topic?
Waauw:
@szaimen Isn´t this something you or one of your colleges could have mentioned in this issue? I think the shortage in resources answering community questions is really bad marketing, leaving unanswered topics in git and help. Puzzled...
Yeah, looks like a php ini conflict, as per our docs https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/config_sample_php_parameters.html#session-lifetime
Ehhh @skjnldsv , this is a clue?
So php.ini is not to be modified as it is generated by AIO, so... I tried adding the variable to the environment of the mastercontainer, but it does not appear, while being visible in portainer as an Environment variable. Tried the following in docker compose:
So again, where can I find how to modify this? Is there a conversion rule (add PHP_ for instance) when adding PHP variables? How to check if a variable is applied?
More puzzled....
@szaimen this is an AIO issue then?
@szaimen this is an AIO issue then?
I cannot tell. My test account does never get logged out on my test server and especially not after 12h like described above.
@roelofz do you have are reverse proxy ?
@szaimen is there some docs on how to update php ini files on AIO so it stays permanent?
is there some docs on how to update php ini files on AIO so it stays permanent?
This is currently not supported but we could think about increasing the default for session.gc_maxlifetime if it should make a difference.
That explains a lot. The auto logout feature is now next to useless, and required if I want to to make it more secure. 24 minutes is useless, may have been introduced by PHP in one off the last versions, but that is guessing.
Is a (custom) environment variable not a better idea to include? In that way you don´t change the default and don´t impact current configurations, as all (unexpected) changes will alert users.
Moving to AIO then, feel free to close there Simon
This is now released with v9.8.0 Beta. Testing and feedback is welcome! See https://github.com/nextcloud/all-in-one#how-to-switch-the-channel
Thanks! I tested it with a half hour time-out and it works. Now have set it to 8 hours, but confident this does it! Great work and I think securitywise a better starting point!
⚠️ This issue respects the following points: ⚠️
Bug description
Auto logoff configured results in autologoff within half an hour. This seems earlier fixed, but in the current AIO version it still appears (reported in the AIO section, Szaimen advised me to start an issue here.
Steps to reproduce (cookie lifetime with and without bigger value tested)
The session is closed after less then half an hour Tested with keepalive true and false In some case it was possible after more then 12 hours to go back to the last page (Snappymail) without reauthenticating
Expected behavior
Logoff after 12 hours
Nextcloud Server version
29
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
With the logs the post was too long, so I removed them No response
Additional info
Below info was asked in the AIO section:
Host OS
Ubuntu 22.04.4
Docker run command or docker-compose file that you used
Nextcloud AIO version
Nextcloud Hub 8 (29.0.4)