diff --git a/states/gitea/defaults.yaml b/states/gitea/defaults.yaml index c694cf4..41c2f31 100644 --- a/states/gitea/defaults.yaml +++ b/states/gitea/defaults.yaml @@ -28,6 +28,10 @@ gitea: lfs_jwt_secret: createYourOwnJWTSecret enable_gzip: false landing_page: home + cache: + enabled: true + adapter: redis + host: redis://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s mailer: enable: true hostname: mail.example.com @@ -62,4 +66,4 @@ gitea: internal_token: myUniqueInternalToken other: show_footer_branding: true - show_footer_version: true \ No newline at end of file + show_footer_version: true diff --git a/states/gitea/files/app.ini.j2 b/states/gitea/files/app.ini.j2 index 54570d7..53338b2 100644 --- a/states/gitea/files/app.ini.j2 +++ b/states/gitea/files/app.ini.j2 @@ -42,6 +42,11 @@ LFS_JWT_SECRET = {{ gitea.server.lfs_jwt_secret }} ENABLE_GZIP = {{ gitea.server.enable_gzip }} LANDING_PAGE = {{ gitea.server.landing_page }} +[cache] +ENABLED = {{ gitea.cache.enabled }} +ADAPTER = {{ gitea.cache.adapter }} +HOST = {{ gitea.cache.host }} + [mailer] ENABLED = {{ gitea.mailer.enable }} HELO_HOSTNAME = {{ gitea.mailer.hostname }}