opencloud
opencloud copied to clipboard
Config variable to enforce a maximum expiry for public link creation could be named:
Public links are password-protected by default. If this requirement is disabled using the OC_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD parameter, the need to set an expiration date for public links is also automatically removed.
The proposal is to introduce a parameter that defines after how many days a public link should automatically expire from the date of its creation. This limit should either be user-adjustable or enforced as a strict maximum. Example:
- OC_SHARING_PUBLIC_SHARE_MAX_TTL_DAYS: Defines the default or maximum number of days until a public link expires.
- OC_SHARING_PUBLIC_SHARE_MAX_TTL_ENFORCES: If set to true, users cannot exceed this TTL value.
.env OC_SHARING_PUBLIC_SHARE_MAX_TTL_DAYS=7 OC_SHARING_PUBLIC_SHARE_MAX_TTL_ENFORCES=true
@tbsbdr @db-ot
Needs Feature decision.