config.example.js 678 B

1234567891011121314151617181920212223242526272829
  1. module.exports = {
  2. port: 3000,
  3. // Set to the path where frontend is served, e.g. '/gpx' or '/'
  4. basePath: '/',
  5. database: {
  6. // type: 'sqlite' | 'mysql' | 'mariadb'
  7. type: 'sqlite',
  8. // SQLite only:
  9. storage: './data/gpx-vis.db',
  10. // MySQL/MariaDB (fill in if not using SQLite):
  11. // host: 'localhost',
  12. // port: 3306,
  13. // database: 'gpx_vis',
  14. // username: 'root',
  15. // password: 'password',
  16. },
  17. jwt: {
  18. secret: 'CHANGE_THIS_TO_A_RANDOM_SECRET',
  19. expiresIn: '7d',
  20. },
  21. upload: {
  22. maxFileSizeMB: 50,
  23. tempDir: './temp',
  24. },
  25. cors: {
  26. // Origin of the frontend, e.g. 'http://localhost:8080' or '*'
  27. origin: '*',
  28. },
  29. };