First full release
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
const { mkdir } = require('fs/promises')
|
||||
const { TEMP_EXPORT_PATH } = require('./settings')
|
||||
|
||||
module.exports = async () => {
|
||||
await mkdir(TEMP_EXPORT_PATH, { recursive: true })
|
||||
}
|
||||
@@ -4,8 +4,14 @@ module.exports = {
|
||||
cookiesSecure: process.env.COOKIES_SECURE === 'true',
|
||||
smtpHost: process.env.SMTP_HOST,
|
||||
smtpPort: process.env.SMTP_PORT,
|
||||
smtpTlsRejectUnauthorized:
|
||||
process.env.SMTP_TLS_REJECT_UNAUTHORIZED === 'true',
|
||||
smtpUser: process.env.SMTP_USER,
|
||||
smtpPassword: process.env.SMTP_PASSWORD,
|
||||
smtpSecure: process.env.SMTP_SECURE === 'true',
|
||||
smtpRequireTls: process.env.SMTP_REQUIRE_TLS === 'true',
|
||||
smtpAllowInvalidCerts: process.env.SMTP_TLS_ALLOW_INVALID_CERTS === 'true',
|
||||
smtpFrom: process.env.SMTP_FROM,
|
||||
origin: process.env.ORIGIN
|
||||
origin: process.env.ORIGIN,
|
||||
portalAdminInitialEmail: process.env.PORTAL_ADMIN_INITIAL_EMAIL,
|
||||
portalAdminInitialPassword: process.env.PORTAL_ADMIN_INITIAL_PASSWORD,
|
||||
extractionApiOrigin: process.env.EXTRACTION_API_ORIGIN
|
||||
}
|
||||
|
||||
@@ -16,7 +16,11 @@ 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'
|
||||
// If you change this one, don't forget to also update the volume mount in docker-compose.prod.yml
|
||||
// and nodemon ignore flag in package.json scripts.
|
||||
const DATA_FILES_PATH = 'data_files'
|
||||
exports.DATA_FILES_PATH = DATA_FILES_PATH
|
||||
|
||||
exports.TEMP_EXPORT_PATH = `${DATA_FILES_PATH}/export_temp`
|
||||
|
||||
exports.MAX_EXTRACTIONS_PER_USER = 5
|
||||
|
||||
Reference in New Issue
Block a user