From 478fd6044e971d3c991e34fa449201397c2f5ea8 Mon Sep 17 00:00:00 2001 From: pat-s Date: Sat, 22 Jul 2023 14:06:08 +0200 Subject: [PATCH] add minimal config example --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README.md b/README.md index 4fc4bb8..5354701 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ - [High Availability](#high-availability) - [Configuration](#configuration) - [Default Configuration](#default-configuration) + - [Minimal Configuration](#minimal-configuration) - [Additional _app.ini_ settings](#additional-appini-settings) - [External Database](#external-database) - [Ports and external url](#ports-and-external-url) @@ -166,6 +167,36 @@ The Prometheus `/metrics` endpoint is disabled by default. ENABLED = false ``` +### Minimal Configuration + +For a minimal installation, i.e. without HA dependencies and using the built-in SQLITE DB instead of Postgres, the following configuration can be used: + +```yaml +redis-cluster: + enabled: false +postgresql: + enabled: false +postgresql-ha: + enabled: false + +persistence: + enabled: false + +gitea: + config: + database: + DB_TYPE: sqlite3 + session: + PROVIDER: memory + cache: + ADAPTER: memory + queue: + TYPE: level +``` + +This will result in a single-pod Gitea instance without any dependencies and persistence. +Do not use this configuration for production use. + ### Additional _app.ini_ settings > **The [generic](https://docs.gitea.io/en-us/config-cheat-sheet/#overall-default)