From a61a47f9a00a387015a2f00f656f9f51dfd2b341 Mon Sep 17 00:00:00 2001 From: Jimmy Praet Date: Mon, 9 May 2022 18:33:19 +0200 Subject: Update documentation to disable duration settings with -1 instead of 0 (#19647) To turn off the notification endpoint polling, the value should be set to -1, not 0. --- custom/conf/app.example.ini | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'custom') diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index 0d0d809755..c53175b2e0 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -61,7 +61,7 @@ RUN_MODE = ; prod ;; SSL Cipher Suites ;SSL_CIPHER_SUITES=; Will default to "ecdhe_ecdsa_with_aes_256_gcm_sha384,ecdhe_rsa_with_aes_256_gcm_sha384,ecdhe_ecdsa_with_aes_128_gcm_sha256,ecdhe_rsa_with_aes_128_gcm_sha256,ecdhe_ecdsa_with_chacha20_poly1305,ecdhe_rsa_with_chacha20_poly1305" if aes is supported by hardware, otherwise chacha will be first. ;; -;; Timeout for any write to the connection. (Set to 0 to disable all timeouts.) +;; Timeout for any write to the connection. (Set to -1 to disable all timeouts.) ;PER_WRITE_TIMEOUT = 30s ;; ;; Timeout per Kb written to connections. @@ -163,7 +163,7 @@ RUN_MODE = ; prod ;; Enable exposure of SSH clone URL to anonymous visitors, default is false ;SSH_EXPOSE_ANONYMOUS = false ;; -;; Timeout for any write to ssh connections. (Set to 0 to disable all timeouts.) +;; Timeout for any write to ssh connections. (Set to -1 to disable all timeouts.) ;; Will default to the PER_WRITE_TIMEOUT. ;SSH_PER_WRITE_TIMEOUT = 30s ;; @@ -1178,7 +1178,7 @@ PATH = ;; ;; Control how often the notification endpoint is polled to update the notification ;; The timeout will increase to MAX_TIMEOUT in TIMEOUT_STEPs if the notification count is unchanged -;; Set MIN_TIMEOUT to 0 to turn off +;; Set MIN_TIMEOUT to -1 to turn off ;MIN_TIMEOUT = 10s ;MAX_TIMEOUT = 60s ;TIMEOUT_STEP = 10s @@ -1263,7 +1263,7 @@ PATH = ;ISSUE_INDEXER_NAME = gitea_issues ;; ;; Timeout the indexer if it takes longer than this to start. -;; Set to zero to disable timeout. +;; Set to -1 to disable timeout. ;STARTUP_TIMEOUT = 30s ;; ;; Issue indexer queue, currently support: channel, levelqueue or redis, default is levelqueue (deprecated - use [queue.issue_indexer]) @@ -1582,7 +1582,7 @@ PATH = ;HOST = ;; ;; Time to keep items in cache if not used, default is 16 hours. -;; Setting it to 0 disables caching +;; Setting it to -1 disables caching ;ITEM_TTL = 16h ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -1596,7 +1596,7 @@ PATH = ;ENABLED = true ;; ;; Time to keep items in cache if not used, default is 8760 hours. -;; Setting it to 0 disables caching +;; Setting it to -1 disables caching ;ITEM_TTL = 8760h ;; ;; Only enable the cache when repository's commits count great than -- cgit v1.2.3