mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 10:23:54 +00:00
c1fcdf7065
* feat: get server port from app satate or env optional startup port from env will always override function for parsing port from env populate default port in app state add test for migration * bump version
42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import { MILLIS_PER_MINUTE } from 'ontime-utils';
|
|
|
|
export const timerConfig = {
|
|
skipLimit: 1000, // threshold of skip for recalculating, values lower than updateRate can cause issues with rolling over midnight
|
|
updateRate: 32, // how often do we update the timer
|
|
notificationRate: 1000, // how often do we notify clients and integrations
|
|
triggerAhead: 10, // how far ahead do we trigger the end event
|
|
auxTimerDefault: 5 * MILLIS_PER_MINUTE, // default aux timer duration
|
|
};
|
|
|
|
export const config = {
|
|
appState: 'app-state.json',
|
|
corrupt: 'corrupt files',
|
|
migrate: 'migrated files',
|
|
crash: 'crash logs',
|
|
demoProject: 'demo project.json',
|
|
newProject: 'new project.json',
|
|
defaultServerPort: 4001,
|
|
database: {
|
|
directory: 'db',
|
|
filename: 'db.json',
|
|
},
|
|
external: 'external',
|
|
demo: 'demo',
|
|
projects: 'projects',
|
|
sheets: {
|
|
directory: 'sheets',
|
|
},
|
|
restoreFile: 'ontime.restore',
|
|
user: 'user',
|
|
styles: {
|
|
directory: 'styles',
|
|
filename: 'override.css',
|
|
},
|
|
uploads: 'uploads',
|
|
logo: 'logo',
|
|
translations: {
|
|
directory: 'translations',
|
|
filename: 'translations.json',
|
|
},
|
|
};
|