@@ -239,7 +239,7 @@ get_jwk(Host) ->
239239- spec mod_opt_type (atom ()) -> econf :validator ().
240240mod_opt_type (expiration ) ->
241241 % % TODO is there an upper bound for the validity of the JWT token?
242- econf :int (0 , 86400 ); % % 60 * 60 * 24
242+ econf :int (0 , 604800 ); % % 86400 * 7
243243mod_opt_type (jwk ) ->
244244 econf :map (econf :binary (), econf :either (econf :binary (), econf :int ()));
245245mod_opt_type (push_url ) ->
@@ -248,7 +248,7 @@ mod_opt_type(push_url) ->
248248- spec mod_options (binary ()) -> [{atom (), any ()}].
249249mod_options (_Host ) ->
250250 [
251- {expiration , 60 * 15 },
251+ {expiration , 86400 * 60 },
252252 {jwk , jose_jwk :to_map (jose_jwk :generate_key ({oct , 128 }))},
253253 {push_url , <<" auto" >>}
254254 ].
@@ -281,7 +281,7 @@ mod_doc() ->
281281 ? T (
282282 " Every generated push URL will be valid only "
283283 " for the specified interval, in seconds. "
284- " The default value is 15 minutes : '900 '"
284+ " The default value is 7 days : '604800 '"
285285 )
286286 }},
287287 {jwk , #{
@@ -315,7 +315,7 @@ mod_doc() ->
315315 " " ,
316316 " modules:" ,
317317 " mod_unified_push:" ,
318- " expiration: 120 " ,
318+ " expiration: 259200 " ,
319319 " jwk: {\" k\" => \" a4-...\" ,\" kty\" => \" oct\" }"
320320 ]
321321 }.
0 commit comments