A simple file sharing site with an easy to use API and online panel.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 line
889B

  1. {
  2. "Server": {
  3. "port": 4433,
  4. "hostname": "https://shrimpa.rocks",
  5. "tls": true,
  6. "trustProxy": []
  7. },
  8. "Database": {
  9. "host": "mongodb://localhost:27017/shrimpa"
  10. },
  11. "Upload": {
  12. "path": "uploads",
  13. "maxSize": 134217728,
  14. "charset": "abcdefghijklmnopqrstuvwxyz",
  15. "idLength": 6
  16. },
  17. "View": {
  18. "inlineMimeTypes": [
  19. "image/*",
  20. "text/plain"
  21. ]
  22. },
  23. "User": {
  24. "Username": {
  25. "maxLength": 36,
  26. "restrictedChars": "\\s"
  27. },
  28. "Password": {
  29. "saltLength": 64,
  30. "hashIterations": 25000
  31. }
  32. },
  33. "Key": {
  34. "limit": 5
  35. },
  36. "Log": {
  37. "http": true,
  38. "httpLevel": "combined"
  39. },
  40. "RateLimit": {
  41. "enable": true,
  42. "login": {
  43. "window": 600,
  44. "max": 10
  45. },
  46. "register": {
  47. "window": 600,
  48. "max": 10
  49. },
  50. "api": {
  51. "window": 600,
  52. "max": 10
  53. }
  54. }
  55. }