(WIP) Utilisation de redis

This commit is contained in:
Ludovic Poujol 2018-11-05 12:27:46 +01:00
parent 82f24dfaec
commit a99038f251

View file

@ -198,8 +198,26 @@ server {
### Redis
*TODO*
On peut utiliser Redis comme support pour les sessions et le cache de gitea.
#### Cache
~~~
# cat /etc/gitea/git.ini
[cache]
ADAPTER = redis
HOST = network=tcp,addr=127.0.0.1:6379,password=PASSWORD,db=1,pool_size=100,idle_timeout=180
~~~
#### Sessions
~~~
# cat /etc/gitea/git.ini
[session]
PROVIDER = redis
PROVIDER_CONFIG = network=tcp,addr=127.0.0.1:6379,password=PASSWORD,db=0,pool_size=100,idle_timeout=180
~~~
## Avancé