enchant97 / note-mark

Note Mark is a lighting fast and minimal; web-based Markdown notes app.
https://notemark.docs.enchantedcode.co.uk/
GNU Affero General Public License v3.0
297 stars 6 forks source link

(BUG) docker compose does not start #200

Open avmesquita opened 3 months ago

avmesquita commented 3 months ago

Is there an existing issue for this?

Is This A Security Issue?

Describe The Problem

I follow Note Mark video about docker compose. I tested with 0.10 (like video) and latest version. All executions shows me an error,

Expected Behavior

Start a docker image

Steps To Reproduce

Follow instructions of video: https://www.youtube.com/watch?v=rwL99Ac5g98

Environment

version: "3"

volumes: data:

services: note-mark: image: ghcr.io/enchant97/note-mark-aio:0.10 container_name: note-mark-0-10 restart: unless-stopped volumes:

Extra Context

docker compose up [+] Running 14/14 ✔ note-mark 13 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled
✔ 16100daf795a Pull complete ✔ e33bce57de28 Pull complete ✔ 473d8557b1b2 Pull complete ✔ b6824ed73363 Pull complete ✔ 7c12895b777b Pull complete ✔ 33e068de2649 Pull complete ✔ 5664b15f108b Pull complete ✔ 27be814a09eb Pull complete ✔ 4aa0ea1413d3 Pull complete ✔ 9ef7d74bdfdf Pull complete ✔ 9112d77ee5b1 Pull complete ✔ 3e742936860b Pull complete ✔ c62cf2d58f59 Pull complete [+] Running 1/1 ✔ Container note-mark-0-10 Recreated Attaching to note-mark-0-10 note-mark-0-10 | 2024/05/31 10:30:27 env: parse error on field "JWTSecret" of type "config.Base64Decoded": cannot decode base64 string note-mark-0-10 exited with code 0

enchant97 commented 3 months ago

Hi, make sure to use the standard RFC 4648 base64 encoded value with padding for the secret.

I will keep this issue open, since I will add compatibility to use either standard or url safe base64 in a future update.