Add customizable notice on main page and in downloads list

This commit is contained in:
timvisee
2025-04-23 10:07:40 +02:00
parent c71100c82a
commit d0f21e8078
4 changed files with 37 additions and 0 deletions

View File

@@ -15,7 +15,9 @@ module.exports = {
FOOTER_SOURCE_URL: config.footer_source_url,
CUSTOM_FOOTER_TEXT: config.custom_footer_text,
CUSTOM_FOOTER_URL: config.custom_footer_url,
MAIN_NOTICE_HTML: config.main_notice_html,
UPLOAD_AREA_WARNING_HTML: config.upload_area_warning_html,
DOWNLOAD_LIST_NOTICE_HTML: config.download_list_notice_html,
DOWNLOAD_WARNING_HTML: config.download_warning_html,
COLORS: {
PRIMARY: config.ui_color_primary,

View File

@@ -264,11 +264,21 @@ const conf = convict({
default: '',
env: 'CUSTOM_FOOTER_URL'
},
main_notice_html: {
format: String,
default: '',
env: 'SEND_MAIN_NOTICE_HTML'
},
upload_area_warning_html: {
format: String,
default: '',
env: 'SEND_UPLOAD_AREA_WARNING_HTML'
},
download_list_notice_html: {
format: String,
default: '',
env: 'SEND_DOWNLOAD_LIST_NOTICE_HTML'
},
download_warning_html: {
format: String,
default: '',