config.sample.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. module.exports = {
  2. /*
  3. NOTES:
  4. All folders specified on this file will be created automagically.
  5. Most options shouldn't be touched, and the service should run straight up.
  6. */
  7. // Port on which to run the server
  8. port: 9999,
  9. // Upload restrictions
  10. privacy: {
  11. // Is the service public? If so, anyone with the URL can upload files
  12. public: false,
  13. // If not, which IP's should be able to access?
  14. IPs: [
  15. '::1',
  16. '127.0.0.1'
  17. ]
  18. },
  19. // Uploads config
  20. uploads: {
  21. // Folder where images should be stored
  22. folder: 'uploads',
  23. // Max file size allowed
  24. maxsize: '512MB',
  25. // The length of the random generated name for the uploaded files
  26. fileLength: 4,
  27. // Prefix before linking an uploaded file. Ex: your-domain.com/prefix/k4n4.png
  28. // Leave blank for no prefix
  29. prefix: ''
  30. },
  31. // Folder where to store logs
  32. logsFolder: 'logs',
  33. // The following values shouldn't be touched
  34. database: {
  35. client: 'sqlite3',
  36. connection: {
  37. filename: './database/db'
  38. },
  39. useNullAsDefault: true
  40. }
  41. }