Redis can't be disabled without manual config #584
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I want to have redis completely disabled. This is supposed to be possible using the "redis-cluster" section:
However, the session store still points to redis, which looks like this in the result manifest:
My assumption is that another if-clause in the helper template would help:
The workaround is to set the session type to memory manually:
Hi. Thanks for confirming the first part of #564. The mentioned workaround should be the default in this configuration scenario. Do you fancy opening a PR for it?
As said in other comments/issues, if you disable a default, it's on you to correctly configure a fallback as the chart won't automatically pick an alternative.
This has been discussed in quite a few issues already and there's also a section in the README covering it (although this is only covered in the changelog section 9.0.0 for now and should probably be copied/moved to a configuration section).
@justusbunsi I am not sure we should opt for an automatic fallback as otherwise people won't know/be aware what config they actually use. This assumption is partly backend by the fact that this is the third or fourth issue about this (which is not great itself) but people don't seem to read existing issues or the README section which relates to it. But we should definitely find a solution to this, either addressing it more prominently in the README or by force-overriding my opinion on this 😅 I know we are also still discussing the redis non-cluster option...
Also, I am not sure "memory" being good fallback to use for production - and I would prefer that people explicitly set it if they want to use it and the chart doesn't do it implicitly.
Given the multi-key mapping required for
session
and friends and the fact that we don't provide "convenience mappings" invalues.yml
(likegitea.config.session.use_memory: true
this must be set using thePROVIDER
andPROVIDER_CONFIG
config mappings.I've rethought this topic. Given that https://docs.gitea.com/next/administration/config-cheat-sheet#session-session has
memory
set as the default, it makes sense to have it as the fallback option. No matter if it's a good setting or not.I'll create a PR which conditionally checks for the present of redis-cluster and if not, configures memory as the fallback.