| { | |
| "ServedDirectories": [ | |
| "/data/switch/packages", | |
| "/app/data/switch/packages" | |
| ], | |
| "StripDirectoryNames": true, | |
| "ServeEmptyDirectories": false, | |
| "AllowedExt": [ "nsp", "nsz", "xci", "xcz", "zip" ], | |
| "MessageOfTheDay": "Hello from TinfoilWebServer!", | |
| "ExpirationMessage": "Oops! Your account expired.", | |
| "CustomIndexPath": "/app/index.json", | |
| "Cache": { | |
| "AutoDetectChanges": true, | |
| "PeriodicRefreshDelay": "01:00:00" | |
| }, | |
| "Authentication": { | |
| "Enabled": false, | |
| "WebBrowserAuthEnabled": true, | |
| "PwdType": "Plaintext", | |
| "Users": [ | |
| { | |
| "Name": "JohnDoe", | |
| "Pwd": "changeme", | |
| "MaxFingerprints": 1, | |
| "MessageOfTheDay": "Hello JohnDoe!", | |
| "ExpirationDate": "2030-12-31T23:59:59Z", | |
| "ExpirationMessage": "Oops! JohnDoe, your account expired.", | |
| "CustomIndexPath": null | |
| } | |
| ] | |
| }, | |
| "FingerprintsFilter": { | |
| "Enabled": true, | |
| "FingerprintsFilePath": "fingerprints.json", | |
| "MaxFingerprints": 1 | |
| }, | |
| "Blacklist": { | |
| "Enabled": false, | |
| "FilePath": "blacklist.txt", | |
| "MaxConsecutiveFailedAuth": 3, | |
| "IsBehindProxy": true | |
| }, | |
| "Kestrel": { | |
| "Endpoints": { | |
| "Http": { "Url": "http://0.0.0.0:5000" } | |
| } | |
| }, | |
| "Logging": { | |
| "LogLevel": { "Default": "Information" }, | |
| "Console": { "LogLevel": { "Default": "Information" } }, | |
| "File": { | |
| "Path": "TinfoilWebServer.log", | |
| "Append": true, | |
| "MinLevel": "Information", | |
| "FileSizeLimitBytes": 1000000, | |
| "MaxRollingFiles": 10 | |
| } | |
| } | |
| } | |