apankrat / nullboard

Nullboard is a minimalist kanban board, focused on compactness and readability.
https://nullboard.io/preview
Other
2.55k stars 194 forks source link

Allow external tools to inject backup agents #86

Closed luismedel closed 11 months ago

luismedel commented 1 year ago

I created a self contained Nullboard docker image (html app + backup agent) using a custom backup agent.

For the thing to work, I needed a way to inject into Nullboard the agent auth token. So I moved all the defaults for the mandatory backup agents to a set of constants, in order to use an external tool (sed) and modify it's values during the first container run.

I know this change is a bit ad-hoc for my needs, so feel free to discard it if you consider it doesn't fit.

Also I removed a rocgue curly brace that VSCode detected in the CSS :-)

apankrat commented 11 months ago

Hi Luis, I reworked your patch a bit to be more consistent with the rest of the code, but still allowing for easy grepping and sed'ing if needed. See commit https://github.com/apankrat/nullboard/commit/db653635307d02bb7c17144ba7dc2c1d1ab5408a. Your script would need to search and patch lines containing "local agent" and "remote agent". I hope this is acceptable.

luismedel commented 10 months ago

Thank you @apankrat! I'll check it out.