From e4eabcb32e57759fda581b270de6ab803fb20c3f Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 30 Apr 2020 10:47:55 -0500 Subject: [PATCH] Enable cache, correct deployment profile --- roles/gitea/templates/app.ini | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/gitea/templates/app.ini b/roles/gitea/templates/app.ini index e4285ba..00ea5f9 100644 --- a/roles/gitea/templates/app.ini +++ b/roles/gitea/templates/app.ini @@ -9,7 +9,7 @@ APP_NAME = git.9iron.com ; Change it if you run locally RUN_USER = git ; Either "dev", "prod" or "test", default is "dev" -RUN_MODE = proid +RUN_MODE = prod [repository] ROOT = @@ -652,9 +652,9 @@ SENDMAIL_ARGS = [cache] ; if the cache enabled -ENABLED = false +ENABLED = true ; Either "memory", "redis", or "memcache", default is "memory" -ADAPTER = redis +ADAPTER = memory ; For "memory" only, GC interval in seconds, default is 60 INTERVAL = 60 ; For "redis" and "memcache", connection host address @@ -668,7 +668,7 @@ ITEM_TTL = 16h ; Last commit cache [cache.last_commit] ; if the cache enabled -ENABLED = false +ENABLED = true ; Time to keep items in cache if not used, default is 8760 hours. ; Setting it to 0 disables caching ITEM_TTL = 8760h