tinfoi / TinfoilWebServer.config.json
haaaaus's picture
Update TinfoilWebServer.config.json
befe8d5 verified
{
"ServedDirectories": ["/data/Switch/Packages"],
"StripDirectoryNames": true,
"ServeEmptyDirectories": false,
"AllowedExt": ["nsp", "nsz", "xci", "xcz"],
"MessageOfTheDay": "Hello World!",
"ExpirationMessage": "Oops! Your account expired.",
"CustomIndexPath": null,
"Cache": {
"AutoDetectChanges": true,
"PeriodicRefreshDelay": "01:00:00"
},
"Authentication": {
"Enabled": true,
"WebBrowserAuthEnabled": false,
"PwdType": "Sha256",
"Users": [
{
"Name": "JohnDoe",
"Pwd": "123456",
"MaxFingerprints": 1,
"MessageOfTheDay": "Hello JohnDoe!",
"ExpirationDate": "2024-12-31T23:59:59Z",
"ExpirationMessage": "Oops! JohnDoe, your account expired.",
"CustomIndexPath": null
}
]
},
"FingerprintsFilter": {
"Enabled": true,
"FingerprintsFilePath": "/tmp/fingerprints.json",
"MaxFingerprints": 1
},
"Blacklist": {
"Enabled": true,
"FilePath": "/tmp/blacklist.txt",
"MaxConsecutiveFailedAuth": 3,
"IsBehindProxy": false
},
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://0.0.0.0:5000"
}
}
},
"Logging": {
"LogLevel": {
"Default": "Information"
},
"Console": {
"LogLevel": {
"Default": "Information"
}
},
"File": {
"Path": "/tmp/TinfoilWebServer.log",
"Append": true,
"MinLevel": "Information",
"FileSizeLimitBytes": 1000000,
"MaxRollingFiles": 10
}
}
}