Initial commit

This commit is contained in:
2024-12-29 12:20:01 +01:00
commit 9ebe9b55bd
87 changed files with 21545 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
{
// Connection string of the database that is used
"ConnectionString": "mysql://root:example@localhost/treasure_chest",
// Interface & port that will be used
"BindTo": "localhost:8000",
// Path of uploaded, encrypted files
"FilePath": "./files",
// Max download tries for a file (by all IPs)
"MaxDownloadTries": 3,
// Default lifefime (in days) of not downloaded, encrypted files
"DaysFileAvailable": 7,
// Max number of files that can be uploaded by a single IP in a day
"UserUploadsPerDay": 5,
// Name of header that will be used to indicate a requests IP. Ensure to configure your proxying server!
"IpHeaderName": "X-Forwarded-For",
// Max (unencrypted) file size in bytes. Mind that - during an upload request - both unencrypted and encrypted file are held in memory! So memory of request roughly equals {BodyMaxSize} * 2.
"BodyMaxSize": 10000000
}