From 70503185cd926f2c16329767b23cb7061f68a915 Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 30 Apr 2020 06:32:19 -0500 Subject: [PATCH] Configure Gitea and open up Redis --- roles/gitea/templates/app.ini | 2 +- roles/redis/templates/redis.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/gitea/templates/app.ini b/roles/gitea/templates/app.ini index 8a1e017..74b392b 100644 --- a/roles/gitea/templates/app.ini +++ b/roles/gitea/templates/app.ini @@ -660,7 +660,7 @@ INTERVAL = 60 ; For "redis" and "memcache", connection host address ; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180 ; memcache: `127.0.0.1:11211` -HOST = +HOST = network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180 ; Time to keep items in cache if not used, default is 16 hours. ; Setting it to 0 disables caching ITEM_TTL = 16h diff --git a/roles/redis/templates/redis.conf b/roles/redis/templates/redis.conf index 8f661ab..c728da0 100644 --- a/roles/redis/templates/redis.conf +++ b/roles/redis/templates/redis.conf @@ -89,7 +89,7 @@ protected-mode yes # Accept connections on the specified port, default is 6379 (IANA #815344). # If port 0 is specified Redis will not listen on a TCP socket. -port 0 +port 6379 # TCP listen() backlog. #