config.sample.js 995 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. // Port on which to run the server
  10. port: 9999,
  11. // Uploads config
  12. uploads: {
  13. // If prefix is set, it will be appended at the end of basedomain. Remember to finish it with `/`
  14. // Ex: https://i.kanacchi.moe/prefix/k4n4.png
  15. // Leave blank to use the basedomain.
  16. prefix: '',
  17. // Folder where images should be stored
  18. folder: 'uploads',
  19. // Max file size allowed
  20. maxsize: '512MB',
  21. // The length of the random generated name for the uploaded files
  22. fileLength: 4,
  23. },
  24. // Folder where to store logs
  25. logsFolder: 'logs',
  26. // The following values shouldn't be touched
  27. database: {
  28. client: 'sqlite3',
  29. connection: {
  30. filename: './database/db'
  31. },
  32. useNullAsDefault: true
  33. }
  34. }