Skip to content

Commit 979a9ef

Browse files
MB-50306: Set expiration_warning_days to 30 by default
Change-Id: I76fca92c04acc2f56f0be841761dfe93bf5cd39b Reviewed-on: https://review.couchbase.org/c/ns_server/+/172748 Well-Formed: Build Bot <[email protected]> Reviewed-by: Steve Watanabe <[email protected]> Tested-by: Timofey Barmin <[email protected]>
1 parent acb26a5 commit 979a9ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ns_server_cert.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ get_warnings() ->
11981198

11991199
expiration_warnings(CertProps) ->
12001200
Now = calendar:datetime_to_gregorian_seconds(calendar:universal_time()),
1201-
WarningDays = ns_config:read_key_fast({cert, expiration_warning_days}, 7),
1201+
WarningDays = ns_config:read_key_fast({cert, expiration_warning_days}, 30),
12021202
WarningSeconds = WarningDays * 24 * 60 * 60,
12031203
WarningThreshold = Now + WarningSeconds,
12041204

0 commit comments

Comments
 (0)