config.sample.js 1.1 KB

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. // Your base domain where the app is running. Remember to finish it with '/'
  8. basedomain: 'https://i.kanacchi.moe/',
  9. // Token to use on the api. Leave blank for public
  10. TOKEN: 'YOURSUPERSECRETTOKEN',
  11. // Port on which to run the server
  12. port: 9999,
  13. // Uploads config
  14. uploads: {
  15. // If prefix is set, it will be appended at the end of basedomain. Remember to finish it with `/`
  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. }