You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to setup a gitea deployment with kubernetes on my own machines with an external PostgreSQL as persistence store and an external Redis as cache store (session store as well).
Here is part of my /data/gitea/conf/app.ini
[session]COOKIE_SECURE = true
PROVIDER = redis
# I have tried using this before, same outcome.# PROVIDER_CONFIG: network=tcp,addr=some.host.addr:6379,password=some_password,db=14,pool_size=100,idle_timeout=180PROVIDER_CONFIG = redis://:[email protected]:6379/14?pool_size=100&idle_timeout=100
After gitea sign in, session related key could be written to Redis successfully; the problem is, but only to the default database: db0; The database I chose (which is db14) got nothing.
Thoughts
After some reading of the source code, I found it maybe related to codes below
Gitea version (or commit ref): 1.14.1 (using offical Docker image)
Git version: Not Related
Operating system: Not Related
Database (use
[x]
):Can you reproduce the bug at https://try.gitea.io:
Description
I have been trying to setup a gitea deployment with kubernetes on my own machines with an external PostgreSQL as persistence store and an external Redis as cache store (session store as well).
Here is part of my
/data/gitea/conf/app.ini
After gitea sign in, session related key could be written to Redis successfully; the problem is, but only to the default database: db0; The database I chose (which is db14) got nothing.
Thoughts
After some reading of the source code, I found it maybe related to codes below
modules/nosql/redis.go
and modules/nosql/manager_redis.go
I also wrote some simple codes to test it:
The text was updated successfully, but these errors were encountered: