Skip to content

Commit

Permalink
bump default shortened link validity to 7 days
Browse files Browse the repository at this point in the history
Signed-off-by: flamion <contact@flamion.dev>
  • Loading branch information
flamion committed Feb 8, 2023
1 parent ce96eef commit bb955ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.toml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ database_location = 'database.db'
# default_max_uses = 0 # Zero means unlimited uses.

# How long a link (by default) is valid for, in milliseconds.
# Optional, default is 24 hours.
# Optional, default is 7 days.
# default_valid_for = 86400000 # 24 hours

# Location of custom frontend.
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ const fn max_uses_default() -> i64 {
}

const fn valid_for_duration_default() -> i64 {
1000 * 60 * 60 * 24 // 24 hours
7 * 1000 * 60 * 60 * 24 // 7 days
}

0 comments on commit bb955ca

Please sign in to comment.