config.sample.js 1011 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. module.exports = {
  2. /*
  3. NOTES:
  4. All folders specified on this file will be created automagically.
  5. Ideally the only options you should change are port and basedomain.
  6. */
  7. // Token to use on the api. Leave blank for public
  8. TOKEN: 'YOURSUPERSECRETTOKEN',
  9. // Port on which to run the server
  10. port: 9999,
  11. // Uploads config
  12. uploads: {
  13. // Where to serve the uploaded files.
  14. basedomain: 'https://i.kanacchi.moe/',
  15. // If prefix is set, it will be appended at the end of basedomain.
  16. // Ex: https://i.kanacchi.moe/prefix/k4n4.png
  17. // Leave blank to use the basedomain
  18. prefix: '',
  19. // Folder where images should be stored
  20. folder: 'uploads',
  21. // Max file size allowed
  22. maxsize: '512MB',
  23. // The length of the random generated name for the uploaded files
  24. fileLength: 4,
  25. },
  26. // Folder where to store logs
  27. logsFolder: 'logs',
  28. // The following values shouldn't be touched
  29. database: {
  30. client: 'sqlite3',
  31. connection: {
  32. filename: './database/db'
  33. },
  34. useNullAsDefault: true
  35. }
  36. }