(WIP) Utilisation de redis
This commit is contained in:
parent
82f24dfaec
commit
a99038f251
|
@ -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é
|
||||
|
||||
|
|
Loading…
Reference in a new issue