diff --git a/backend/app/cmd/server.go b/backend/app/cmd/server.go index 32074f3e..519b2efb 100644 --- a/backend/app/cmd/server.go +++ b/backend/app/cmd/server.go @@ -74,7 +74,7 @@ type ServerCommand struct { CriticalScore int `long:"critical-score" env:"CRITICAL_SCORE" default:"-10" description:"critical score threshold"` PositiveScore bool `long:"positive-score" env:"POSITIVE_SCORE" description:"enable positive score only"` ReadOnlyAge int `long:"read-age" env:"READONLY_AGE" default:"0" description:"read-only age of comments, days"` - EditDuration time.Duration `long:"edit-time" env:"EDIT_TIME" default:"5m" description:"edit window"` + EditDuration time.Duration `long:"edit-time" env:"EDIT_TIME" default:"5m" description:"edit window; set to 0 to disable comment editing and staged image cleanup"` AdminEdit bool `long:"admin-edit" env:"ADMIN_EDIT" description:"unlimited edit for admins"` Port int `long:"port" env:"REMARK_PORT" default:"8080" description:"port"` Address string `long:"address" env:"REMARK_ADDRESS" default:"" description:"listening address"` diff --git a/site/src/docs/configuration/parameters/index.md b/site/src/docs/configuration/parameters/index.md index f6124cf8..7ad170b0 100644 --- a/site/src/docs/configuration/parameters/index.md +++ b/site/src/docs/configuration/parameters/index.md @@ -147,7 +147,7 @@ services: | positive-score | POSITIVE_SCORE | `false` | restricts comment's score to be only positive | | restricted-words | RESTRICTED_WORDS | | words banned in comments (can use `*`), _multi_ | | restricted-names | RESTRICTED_NAMES | | names prohibited to use by the user, _multi_ | -| edit-time | EDIT_TIME | `5m` | edit window | +| edit-time | EDIT_TIME | `5m` | edit window; set to `0` to disable comment editing and staged image cleanup | | admin-edit | ADMIN_EDIT | `false` | unlimited edit for admins | | read-age | READONLY_AGE | | read-only age of comments, days | | image-proxy.http2https | IMAGE_PROXY_HTTP2HTTPS | `false` | enable HTTP->HTTPS proxy for images |