mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 06:00:53 +03:00
Add customizable notice on main page and in downloads list
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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: '',
|
||||
|
||||
Reference in New Issue
Block a user