| 1234567891011121314151617181920212223242526272829 |
- module.exports = {
- port: 3000,
- // Set to the path where frontend is served, e.g. '/gpx' or '/'
- basePath: '/',
- database: {
- // type: 'sqlite' | 'mysql' | 'mariadb'
- type: 'sqlite',
- // SQLite only:
- storage: './data/gpx-vis.db',
- // MySQL/MariaDB (fill in if not using SQLite):
- // host: 'localhost',
- // port: 3306,
- // database: 'gpx_vis',
- // username: 'root',
- // password: 'password',
- },
- jwt: {
- secret: 'CHANGE_THIS_TO_A_RANDOM_SECRET',
- expiresIn: '7d',
- },
- upload: {
- maxFileSizeMB: 50,
- tempDir: './temp',
- },
- cors: {
- // Origin of the frontend, e.g. 'http://localhost:8080' or '*'
- origin: '*',
- },
- };
|