From 71cc031d44f411b9f990a30c3d0e104c9faece49 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Tue, 11 Jul 2023 21:19:46 -0400 Subject: [PATCH] Add abuse link and moderation shit I don't want to be in blacklists lol --- src/config.json | 16 ++++++++-------- src/static/js/uguu.js | 2 +- src/templates/partials/donation_banner.ejs | 2 +- src/templates/partials/lead.ejs | 2 +- src/templates/partials/malware_banner.ejs | 6 +++--- src/templates/partials/nav.ejs | 7 +++++-- 6 files changed, 19 insertions(+), 16 deletions(-) diff --git a/src/config.json b/src/config.json index 9a71e28..84b39f9 100755 --- a/src/config.json +++ b/src/config.json @@ -9,7 +9,7 @@ "faq.ejs", "tools.ejs" ], - "max_upload_size": 192, + "max_upload_size": 512, "expireTime": "7D", "siteName": "ayaya.beauty", "subTitle": "✨", @@ -18,28 +18,28 @@ "abuseContact": "abuse@zzls.xyz", "infoContact": "", "ServerCountryLocation": "Chile", - "SiteMetaInfo": "ayaya.beauty es un subidor de multimedia temporal, puedes subir archivos de hasta 192MB y se borraran automaticamente en 7 Dias.", + "SiteMetaInfo": "ayaya.beauty es un subidor de multimedia temporal, puedes subir archivos de hasta 512MB y se borraran automaticamente en 7 Dias.", "ToolsDesc": "Las siguentes herramientas necesitaran ser editadas para funcionar en este clon de uguu.se, usualmente editando la URL funciona. (En este caso, ayaya.beauty)", "donationBanner": true, "paypalUrl": "", "bitcoinAddress": "bc1q66mpdxnu340dnl0qlznq783zzqawskw48kestd", "flattrUrl": "", "kofiUrl": "https://ko-fi.com/fijxu", - "malwareBanner": false, + "malwareBanner": true, "DB_MODE": "sqlite", "DB_PATH": "/var/www/db/uguuDB.sq3", "DB_USER": "NULL", "DB_PASS": "NULL", - "LOG_IP": false, + "LOG_IP": true, "ANTI_DUPE": false, "BLACKLIST_DB": true, "FILTER_MODE": true, - "RATE_LIMIT": false, + "RATE_LIMIT": true, "RATE_LIMIT_TIMEOUT": 60, - "RATE_LIMIT_FILES": 50, - "FILES_ROOT": "/var/www/files/", + "RATE_LIMIT_FILES": 10, + "FILES_ROOT": "/var/www/files2/", "FILES_RETRIES": 15, - "NAME_LENGTH": 6, + "NAME_LENGTH": 4, "ID_CHARSET": "abcdefghijklmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ", "DOUBLE_DOTS_EXTENSIONS": [ "tar.bz2", diff --git a/src/static/js/uguu.js b/src/static/js/uguu.js index 9da0742..817eef6 100644 --- a/src/static/js/uguu.js +++ b/src/static/js/uguu.js @@ -128,7 +128,7 @@ document.addEventListener('DOMContentLoaded', function () { bar.innerHTML = 'Error: ' + response.description; } } else if (respStatus === 413) { - link.textContent = 'File too big!'; + link.textContent = 'El archivo es muy grande'; url.appendChild(link); } else { let response = JSON.parse(xhr.responseText); diff --git a/src/templates/partials/donation_banner.ejs b/src/templates/partials/donation_banner.ejs index f913970..4eda9d3 100644 --- a/src/templates/partials/donation_banner.ejs +++ b/src/templates/partials/donation_banner.ejs @@ -1,5 +1,5 @@

- <%= siteName %> es libre y gratis para todos, pero los costos de hosteo no los son + <%= siteName %> es libre y gratis para todos, pero los costos de hosteo no los son — Las donaciones son lo que mantiene <%= siteName %> (y otros servicios que tambien hosteo) vivo, libre de anuncios y enfocados a la privacidad :3. diff --git a/src/templates/partials/lead.ejs b/src/templates/partials/lead.ejs index f4a7927..59cdb08 100644 --- a/src/templates/partials/lead.ejs +++ b/src/templates/partials/lead.ejs @@ -1,6 +1,6 @@

<%= siteName %>~

- El tamaño maximo permitido son <%= max_upload_size %> MiB y expiran luego de <%= expireTime %>, lee el + El tamaño maximo permitido son <%= max_upload_size %> MiB (suficiente para subir un video de 10 minutos de YouTube) y expiran luego de <%= expireTime %>, para más información, lee el FAQ diff --git a/src/templates/partials/malware_banner.ejs b/src/templates/partials/malware_banner.ejs index 5bee7e0..8ed400d 100644 --- a/src/templates/partials/malware_banner.ejs +++ b/src/templates/partials/malware_banner.ejs @@ -1,4 +1,4 @@

- Malware is not allowed - — files identified as malware will be removed without further notice. -

\ No newline at end of file + El Malware no esta permitido! + — Los archivos que contengan Malware seran removidos sin previo aviso. +

diff --git a/src/templates/partials/nav.ejs b/src/templates/partials/nav.ejs index c95e29a..2f9e6b0 100644 --- a/src/templates/partials/nav.ejs +++ b/src/templates/partials/nav.ejs @@ -13,7 +13,10 @@ Chatterino
  • - Github + Git +
  • +
  • + Abuse
  • - \ No newline at end of file +