integrate with new ui

This commit is contained in:
Emily 2018-08-08 11:07:09 -07:00
parent 13057804ab
commit bf16e5c8a9
27 changed files with 250 additions and 315 deletions

View file

@ -4,10 +4,30 @@ const path = require('path');
const { randomBytes } = require('crypto');
const conf = convict({
s3_bucket: {
format: String,
default: '',
env: 'S3_BUCKET'
s3_buckets: {
format: Array,
default: [],
env: 'S3_BUCKETS'
},
num_of_buckets: {
format: Number,
default: 3,
env: 'NUM_OF_BUCKETS'
},
expire_times_seconds: {
format: Array,
default: [86400, 604800, 1209600],
env: 'EXPIRE_TIMES_SECONDS'
},
default_expire_seconds: {
format: Number,
default: 86400,
env: 'DEFAULT_EXPIRE_SECONDS'
},
max_expire_seconds: {
format: Number,
default: 1209600,
env: 'MAX_EXPIRE_SECONDS'
},
redis_host: {
format: String,
@ -55,11 +75,6 @@ const conf = convict({
default: 1024 * 1024 * 1024 * 3,
env: 'MAX_FILE_SIZE'
},
expire_seconds: {
format: Number,
default: 86400,
env: 'EXPIRE_SECONDS'
},
l10n_dev: {
format: Boolean,
default: false,