config.sample.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. module.exports = {
  2. /*
  3. If set to true the user will need to specify the auto-generated token
  4. on each API call, meaning random strangers wont be able to use the service
  5. unless they have the token loli-safe provides you with.
  6. If it's set to false, then upload will be public for anyone to use.
  7. */
  8. private: true,
  9. // The registered domain where you will be serving the app. Use IP if none.
  10. domains: [
  11. /*
  12. You need to specify the base domain where loli-self is running
  13. and how should it resolve the URL for uploaded files. For example:
  14. */
  15. // Files will be served at http(s)://i.kanacchi.moe/Fxt0.png
  16. { host: 'kanacchi.moe', resolve: 'https://i.kanacchi.moe'},
  17. // Files will be served at https://my.kanacchi.moe/loli-self/files/Fxt0.png
  18. { host: 'kanacchi.moe', resolve: 'https://my.kanacchi.moe/loli-self/files' }
  19. ],
  20. // Port on which to run the server
  21. port: 9999,
  22. // Uploads config
  23. uploads: {
  24. // Folder where images should be stored
  25. folder: 'uploads',
  26. // Max file size allowed. Needs to be in MB
  27. maxSize: '512MB',
  28. // The length of the random generated name for the uploaded files
  29. fileLength: 32,
  30. // NOTE: Thumbnails are only for the admin panel and they require you
  31. // to install a separate binary called graphicsmagick (http://www.graphicsmagick.org)
  32. generateThumbnails: false
  33. },
  34. // Folder where to store logs
  35. logsFolder: 'logs',
  36. // The following values shouldn't be touched
  37. database: {
  38. client: 'sqlite3',
  39. connection: {
  40. filename: './database/db'
  41. },
  42. useNullAsDefault: true
  43. }
  44. }