config.sample.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. // Files will be served at http(s)://i.kanacchi.moe/Fxt0.png
  12. { host: 'i.kanacchi.moe' },
  13. // Files will be served at http(s)://my.kanacchi.moe/loli-self/files/Fxt0.png
  14. { host: 'my.kanacchi.moe', resolve: 'https://my.kanacchi.moe/loli-self/files' },
  15. // Files will be served at http://localhost:9999/Fxt0.png
  16. { domain: 'localhost:9999' }
  17. ],
  18. // Port on which to run the server
  19. port: 9999,
  20. // Uploads config
  21. uploads: {
  22. // Folder where images should be stored
  23. folder: 'uploads',
  24. // Max file size allowed. Needs to be in MB
  25. maxSize: '512MB',
  26. // The length of the random generated name for the uploaded files
  27. fileLength: 32,
  28. },
  29. // Folder where to store logs
  30. logsFolder: 'logs',
  31. // The following values shouldn't be touched
  32. database: {
  33. client: 'sqlite3',
  34. connection: {
  35. filename: './database/db'
  36. },
  37. useNullAsDefault: true
  38. }
  39. }