Initial commit

This commit is contained in:
Luka Romih
2022-12-07 04:43:36 +01:00
commit 257f3c354f
496 changed files with 55373 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
const { cookiesSecure } = require('../config/keys')
// Duration of validity of a remember me token. 1 year.
const REMEMBER_ME_DURATION_JS = 365 * 24 * 60 * 60 * 1000
exports.REMEMBER_ME_DURATION_SQL = '365 days'
exports.rememberMeCookieSettings = {
httpOnly: true,
maxAge: REMEMBER_ME_DURATION_JS,
secure: cookiesSecure,
signed: true,
sameSite: 'lax'
}
exports.DEFAULT_HITS_PER_PAGE = 10
exports.EDITOR_MAX_HITS = 10000
// If you change this one, don't forget to also update the volume mount in docker-compose.prod.yml.
exports.DATA_FILES_PATH = 'data_files'
exports.MAX_EXTRACTIONS_PER_USER = 5