expose maxUploadSize and premiumUploadSize via /api/config

This commit is contained in:
ansuz
2020-03-03 16:47:44 -05:00
parent 50b9c27dcb
commit 53ed247bc2
2 changed files with 9 additions and 1 deletions

View File

@@ -225,7 +225,9 @@ var serveConfig = (function () {
adminEmail: config.adminEmail,
adminKeys: admins,
inactiveTime: config.inactiveTime,
supportMailbox: config.supportMailboxPublicKey
supportMailbox: config.supportMailboxPublicKey,
maxUploadSize: config.maxUploadSize,
premiumUploadSize: config.premiumUploadSize,
}, null, '\t'),
'obj.httpSafeOrigin = ' + (function () {
if (config.httpSafeOrigin) { return '"' + config.httpSafeOrigin + '"'; }