Add customizable warnings shown on upload and download pages

This commit is contained in:
timvisee
2025-04-22 21:31:23 +02:00
parent 5124572dba
commit 6890165f67
3 changed files with 36 additions and 2 deletions

View File

@@ -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

View File

@@ -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 dont stay online forever.',
default:
'Encrypt and send files with a link that automatically expires to ensure your important documents dont 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',