diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2024-09-06 18:12:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-06 10:12:41 +0000 |
commit | 2da2000413e0fd4739872e067a462a14f1dc6f8e (patch) | |
tree | dc8cb5776cf7386059c1a6c3e96df5e805965ebc /custom | |
parent | a5818470fe62677d8859b590b2d80b98fe23d098 (diff) | |
download | gitea-2da2000413e0fd4739872e067a462a14f1dc6f8e.tar.gz gitea-2da2000413e0fd4739872e067a462a14f1dc6f8e.zip |
Use global lock instead of NewExclusivePool to allow distributed lock between multiple Gitea instances (#31813)
Replace #26486
Fix #19620
---------
Co-authored-by: Jason Song <i@wolfogre.com>
Diffstat (limited to 'custom')
-rw-r--r-- | custom/conf/app.example.ini | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index adec5aff36..0f70a1a3d0 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -2713,3 +2713,9 @@ LEVEL = Info ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; storage type ;STORAGE_TYPE = local + +;[global_lock] +;; Lock service type, could be memory or redis +;SERVICE_TYPE = memory +;; Ignored for the "memory" type. For "redis" use something like `redis://127.0.0.1:6379/0` +;SERVICE_CONN_STR = |