diff --git a/app/ui/archiveTile.js b/app/ui/archiveTile.js
index 7ece0205..9a22cdf5 100644
--- a/app/ui/archiveTile.js
+++ b/app/ui/archiveTile.js
@@ -486,6 +486,16 @@ module.exports.empty = function(state, emit) {
})}
`;
+ const warning = state.WEB_UI.UPLOAD_AREA_WARNING_HTML
+ ? html`
+
+ ${raw(state.WEB_UI.UPLOAD_AREA_WARNING_HTML)}
+
+ `
+ : '';
+
return html`
${state.translate('addFilesButton')}
- ${upsell}
+ ${upsell} ${warning}
`;
@@ -559,6 +569,16 @@ module.exports.preview = function(state, emit) {
${archiveDetails(state.translate, archive)}
`;
+ const warning = state.WEB_UI.DOWNLOAD_WARNING_HTML
+ ? html`
+
+ ${raw(state.WEB_UI.DOWNLOAD_WARNING_HTML)}
+
+ `
+ : '';
+
return html`
${state.translate('downloadButtonLabel')}
+ ${warning}
`;
diff --git a/server/clientConstants.js b/server/clientConstants.js
index 37c69be9..4786bcff 100644
--- a/server/clientConstants.js
+++ b/server/clientConstants.js
@@ -15,6 +15,8 @@ module.exports = {
FOOTER_SOURCE_URL: config.footer_source_url,
CUSTOM_FOOTER_TEXT: config.custom_footer_text,
CUSTOM_FOOTER_URL: config.custom_footer_url,
+ UPLOAD_AREA_WARNING_HTML: config.upload_area_warning_html,
+ DOWNLOAD_WARNING_HTML: config.download_warning_html,
COLORS: {
PRIMARY: config.ui_color_primary,
ACCENT: config.ui_color_accent
diff --git a/server/config.js b/server/config.js
index 7c0f43cc..ffab7bd3 100644
--- a/server/config.js
+++ b/server/config.js
@@ -175,7 +175,8 @@ const conf = convict({
},
custom_description: {
format: String,
- default: 'Encrypt and send files with a link that automatically expires to ensure your important documents don’t stay online forever.',
+ default:
+ 'Encrypt and send files with a link that automatically expires to ensure your important documents don’t stay online forever.',
env: 'CUSTOM_DESCRIPTION'
},
detect_base_url: {
@@ -263,6 +264,16 @@ const conf = convict({
default: '',
env: 'CUSTOM_FOOTER_URL'
},
+ upload_area_warning_html: {
+ format: String,
+ default: '',
+ env: 'SEND_UPLOAD_AREA_WARNING_HTML'
+ },
+ download_warning_html: {
+ format: String,
+ default: '',
+ env: 'SEND_DOWNLOAD_WARNING_HTML'
+ },
ui_color_primary: {
format: String,
default: '#0a84ff',