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

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