From 5f93f6fdc248957f4a33ebc4814717970235c44f Mon Sep 17 00:00:00 2001 From: mdivecky Date: Mon, 10 Jun 2024 14:34:17 +0200 Subject: [PATCH] NoLog customisations --- docker-compose.yml | 11 +++++++++-- src/static/img/nolog-red.svg | 4 ++++ src/static/skins/colibris/index.css | 17 ++++++++--------- src/templates/index.html | 16 ++++------------ 4 files changed, 25 insertions(+), 23 deletions(-) create mode 100644 src/static/img/nolog-red.svg diff --git a/docker-compose.yml b/docker-compose.yml index 24a72616..571a73eb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,12 @@ services: app: user: "0:0" - image: etherpad/etherpad:latest + #image: etherpad/etherpad:latest + build: + context: . + args: + ETHERPAD_PLUGINS: ep_headings2 ep_delete_empty_pads + target: production tty: true stdin_open: true volumes: @@ -20,10 +25,12 @@ services: DB_TYPE: "postgres" DB_USER: ${DOCKER_COMPOSE_POSTGRES_USER:-admin} # For now, the env var DEFAULT_PAD_TEXT cannot be unset or empty; it seems to be mandatory in the latest version of etherpad - DEFAULT_PAD_TEXT: ${DOCKER_COMPOSE_APP_DEFAULT_PAD_TEXT:- } + DEFAULT_PAD_TEXT: "pad.nolog.cz is provided with love by NoLog.cz. Please consider supporting us at https://nolog.cz/support\nData in pad.nolog.cz are not encrypted and can be accessed just by knowing the URL. Use cryptpad.cz for any confidential information (it's also run by us at NoLog.cz)." + TITLE: "pad.nolog.cz" DISABLE_IP_LOGGING: ${DOCKER_COMPOSE_APP_DISABLE_IP_LOGGING:-false} SOFFICE: ${DOCKER_COMPOSE_APP_SOFFICE:-null} TRUST_PROXY: ${DOCKER_COMPOSE_APP_TRUST_PROXY:-true} + ETHERPAD_PLUGINS: "ep_headings2 ep_delete_empty_pads" restart: always ports: - "${DOCKER_COMPOSE_APP_PORT_PUBLISHED:-9001}:${DOCKER_COMPOSE_APP_PORT_TARGET:-9001}" diff --git a/src/static/img/nolog-red.svg b/src/static/img/nolog-red.svg new file mode 100644 index 00000000..fe5bf0c8 --- /dev/null +++ b/src/static/img/nolog-red.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/static/skins/colibris/index.css b/src/static/skins/colibris/index.css index 5129c43a..1348b0e9 100644 --- a/src/static/skins/colibris/index.css +++ b/src/static/skins/colibris/index.css @@ -5,7 +5,6 @@ form { } body { - background: url(images/fond.jpg) center center no-repeat fixed #fff; font-family: Quicksand, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; font-size: 16px; line-height: 1.42857143; @@ -51,8 +50,8 @@ input { text-shadow: none; font-size: 23px; line-height: 1.8; - color: #64d29b; - background: #586a69; + color: #e1e6e3; + background: #000; border-radius: 3px; box-shadow: none; height: 53px; @@ -65,21 +64,21 @@ button[type=submit] { border-top-right-radius: 3px; border-bottom-right-radius: 3px; left: 305px; - color: #64d29b; - background: #586a69; + color: #fff; + background: #000; border: none; top: 0; - opacity: 1; - transition: .2s background; } #button:hover, button[type=submit]:hover { cursor: pointer; - background: #4a5d5c; - color: #64d29b; + background: white; + border: 2px solid black; + color: black; } + #padname { height: 38px; max-width: 350px; diff --git a/src/templates/index.html b/src/templates/index.html index 39a0997c..2974f000 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -141,19 +141,11 @@
<% e.begin_block("indexWrapper"); %> +
- <% if (!settings.requireSession) { %> - <% if (settings.editOnly) { %> - - <% } else {%> - - - <% } %> -
- - -
- <% } %> + +
+

This etherpad instance is hosted by NoLog.cz. We do not store IP addresses and we require HTTPS, but please note that this service is not end-to-end encrypted. You can read more about security precautions we take to protect your data here. If you are happy using our services, please consider supporting us. Thanks to people who already do that, we can host this and other services for free, without any ads, tracking or selling your data.

<% e.end_block(); %>