From 158a44935ce5d1efda5fcc37f84e50ac59a66d35 Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Tue, 9 Jun 2026 00:04:36 +0200 Subject: [PATCH] chore: use correct value to disable timeouts in example config (#12985) These values are parsed as durations, and rejected if they encounter parsing errors. "-1" lacks a unit, and is rejected. The end result is that setting PER_WRITE_TIMEOUT = -1 just uses the default 30s See also forgejo/docs!2005 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12985 Reviewed-by: Gusted --- custom/conf/app.example.ini | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index 0a6c80f0a4..c0f007d601 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -118,7 +118,7 @@ RUN_USER = ; git ;; 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 -1 to disable all timeouts.) +;; Timeout for any write to the connection. (Set to -1s to disable all timeouts.) ;PER_WRITE_TIMEOUT = 30s ;; ;; Timeout per Kb written to connections. @@ -232,7 +232,7 @@ RUN_USER = ; git ;; Command template for authorized keys entries ;SSH_AUTHORIZED_KEYS_COMMAND_TEMPLATE = {{.AppPath}} --config={{.CustomConf}} serv key-{{.Key.ID}} ;; -;; Timeout for any write to ssh connections. (Set to -1 to disable all timeouts.) +;; Timeout for any write to ssh connections. (Set to -1s to disable all timeouts.) ;; Will default to the PER_WRITE_TIMEOUT. ;SSH_PER_WRITE_TIMEOUT = 30s ;; @@ -1378,7 +1378,7 @@ LEVEL = Info ;; ;; 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 -1 to turn off +;; Set MIN_TIMEOUT to -1s to turn off polling ;MIN_TIMEOUT = 10s ;MAX_TIMEOUT = 60s ;TIMEOUT_STEP = 10s @@ -1470,7 +1470,7 @@ LEVEL = Info ;ISSUE_INDEXER_NAME = gitea_issues ;; ;; Timeout the indexer if it takes longer than this to start. -;; Set to -1 to disable timeout. +;; Set to -1s to disable timeout. ;STARTUP_TIMEOUT = 30s ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;