feat: paste views; configuration validation; hmacsha256 method; enhance paste clean up serivce; paste view clean up service;

This commit is contained in:
2026-01-09 19:12:05 -05:00
parent 60876eb1ba
commit 3048af3a6d
20 changed files with 592 additions and 46 deletions
+7 -1
View File
@@ -1,4 +1,6 @@
namespace SharpbinV3.Server.Settings
using System.ComponentModel.DataAnnotations;
namespace SharpbinV3.Server.Settings
{
public class PasteSettings
{
@@ -7,5 +9,9 @@
public int MaxPasteSizeInBytes { get; set; } = 1_048_576; // 1 MB
public bool EnablePasteCompression { get; set; } = true;
public bool RequiresVerfication { get; set; } = true;
[Required, MinLength(32), MaxLength(128)]
public string View_HMAC_Secret { get; set; } = string.Empty;
[MinLength(32), MaxLength(128)]
public string View_Internal_API_Key { get; set; } = string.Empty;
}
}