diff options
author | f0x52 <f@0x52.eu> | 2022-05-15 18:40:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 00:40:29 +0800 |
commit | 6680cca07f454c31efdc0770b4421dcba4734dfe (patch) | |
tree | 5fdc402c78546b7c3b22ead2c845a7327deb56fd | |
parent | 761d4f40be3db03cee192494ab63ee8eb2f6a9d8 (diff) | |
download | gitea-6680cca07f454c31efdc0770b4421dcba4734dfe.tar.gz gitea-6680cca07f454c31efdc0770b4421dcba4734dfe.zip |
clarify what session provider 'db' does (#19713)
* clarify what session provider 'db' does
* Also update session.PROVIDER in app.example.ini
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
-rw-r--r-- | custom/conf/app.example.ini | 3 | ||||
-rw-r--r-- | docs/content/doc/advanced/config-cheat-sheet.en-us.md | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index c53175b2e0..476b305026 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -1608,7 +1608,8 @@ PATH = ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; -;; Either "memory", "file", or "redis", default is "memory" +;; Either "memory", "file", "redis", "db", "mysql", "couchbase", "memcache" or "postgres" +;; Default is "memory". "db" will reuse the configuration in [database] ;PROVIDER = memory ;; ;; Provider config options diff --git a/docs/content/doc/advanced/config-cheat-sheet.en-us.md b/docs/content/doc/advanced/config-cheat-sheet.en-us.md index 461795247d..4c43ba7ddb 100644 --- a/docs/content/doc/advanced/config-cheat-sheet.en-us.md +++ b/docs/content/doc/advanced/config-cheat-sheet.en-us.md @@ -697,7 +697,7 @@ Define allowed algorithms and their minimum key length (use -1 to disable a type ## Session (`session`) -- `PROVIDER`: **memory**: Session engine provider \[memory, file, redis, db, mysql, couchbase, memcache, postgres\]. +- `PROVIDER`: **memory**: Session engine provider \[memory, file, redis, db, mysql, couchbase, memcache, postgres\]. Setting `db` will reuse the configuration in `[database]` - `PROVIDER_CONFIG`: **data/sessions**: For file, the root path; for db, empty (database config will be used); for others, the connection string. - `COOKIE_SECURE`: **false**: Enable this to force using HTTPS for all session access. - `COOKIE_NAME`: **i\_like\_gitea**: The name of the cookie used for the session ID. |