config.sample.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. '186.19.241.189'
  18. ]
  19. },
  20. // Uploads config
  21. uploads: {
  22. // Folder where images should be stored
  23. folder: 'uploads',
  24. // Max file size allowed
  25. maxsize: '512MB',
  26. // The length of the random generated name for the uploaded files
  27. fileLength: 4,
  28. // Prefix before linking an uploaded file. Ex: your-domain.com/prefix/k4n4.png
  29. // Leave blank for no prefix
  30. prefix: ''
  31. },
  32. // Folder where to store logs
  33. logsFolder: 'logs',
  34. // The following values shouldn't be touched
  35. database: {
  36. client: 'sqlite3',
  37. connection: {
  38. filename: './database/db'
  39. },
  40. useNullAsDefault: true
  41. }
  42. }