1
0
Fork 0
forked from jriou/coller
Commit graph

26 commits

Author SHA1 Message Date
b316c6ef67
feat: Add copier and curl links
Signed-off-by: Julien Riou <julien@riou.xyz>
2025-10-02 09:23:40 +02:00
2d8d7efbcb
feat: Add JSON logging format
Fixes #40.

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-10-02 07:35:48 +02:00
de24146991
feat: Encode password
Fixes #38.

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-10-02 07:07:10 +02:00
55de3afc71
feat: Return top-level errors to clients
In order to reduce security risk, the server now returns only functional error
messages to the clients and log low-level error messages.

Fixes #35.

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-10-01 18:13:15 +02:00
ee7b5f0c6e
feat: Pass encryption key in URL fragment
- Remove encryptionKey from URL
- Use POST method to pass both password and encryption key
- Parse URL fragment to extract the encryption key from the web (using
  javascript) and from the CLI

Fixes #36.

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-10-01 12:43:04 +02:00
1fcde736a8
fix: convert id to int64
Snowflake identifiers are integers, not strings.

BREAKING CHANGE: notes that are not using snowflake identifiers will not be
compatible anymore.

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-09-27 10:05:58 +02:00
b5701b5a4d
feat: replace Monaco by Ace
- Remove the Monaco Editor because it was to heavy and hard to integrate
- Use Ace instead
- Use the lowercase identifier for languages (ex: "Text" -> "text")
- Select automatically the default language in the drop down to create a note
  (like the expiration)
- Add `ace_directory` to serve assets from a local folder instead of a CDN
- "hcl" syntax highlighting has been removed
- "go" syntax highlighting has been renamed to "golang"
- Add option to disable the editor

Fixes #32.

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-09-27 09:56:50 +02:00
9e0254c0b5
feat: Add password protection
Fixes #37.

BREAKING CHANGE: API routes are prefixed by /api/note.

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-09-27 08:36:00 +02:00
61ca30690b
feat: Disable levels of encryptions by default
- Add `allow_client_encryption_key` option to allow encryption key provided by
  the client on the web UI (false by default)
- Add `allow_no_encryption` option to allow notes without encryption (disabled
  by default)

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-09-24 17:44:50 +02:00
8e1dd686d3
feat: Rename password by encryption key
Signed-off-by: Julien Riou <julien@riou.xyz>
2025-09-24 07:09:01 +02:00
2c3ca08dbf
feat: Use snowflake identifiers
Fixes #29.

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-09-20 08:37:37 +02:00
ff92e30232
feat: Option to serve Bootstrap from the filesystem
Signed-off-by: Julien Riou <julien@riou.xyz>
2025-09-19 07:14:33 +02:00
b62a807f89
feat: Add HTTPS support
Fixes #19.

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-09-19 07:12:21 +02:00
e03aa6b87a feat: add possibility to hide upload button (#25)
I was asked to add the possibility to hide the upload button to avoid users confuse this tool for a file sharing app.
This is only on the front.

No breaking changes, by default the button is displayed.

Co-authored-by: Thibault Piron <thibault.a.piron@gmail.com>
Reviewed-on: jriou/coller#25
Reviewed-by: Julien Riou <jriou@monitoring@riou.xyz>
Co-authored-by: tapiron <tapiron@monitoring@riou.xyz>
Co-committed-by: tapiron <tapiron@monitoring@riou.xyz>
2025-09-15 09:20:50 +02:00
0a4e001dd9
docs(copier): Rename -w to -ask-password
Signed-off-by: Julien Riou <julien@riou.xyz>
2025-08-28 13:01:50 +02:00
d43c645039
Several changes to clients
coller:
- Add FILENAME as positioned argument (fixes #18)
- Add -html argument to show the URL of the webpage

copier:
- Rename -w to -ask-password

both:
- Rename -b to -ask-bearer

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-08-28 12:48:03 +02:00
a5ebf7607c
feat: Enable metrics by default
Signed-off-by: Julien Riou <julien@riou.xyz>
2025-08-27 22:56:53 +02:00
c54f32495b
feat: Add text editor
Use Monaco Editor to create notes. Support syntax highlighting. Store the
language with the note in the database to later support syntax highlighting in
a note web view.

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-08-27 22:42:12 +02:00
b45c3e3253
feat: Support Bearer token for clients
Fixes #13.

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-08-26 17:32:16 +02:00
7d7614637b
Several fixes and features
- Commit database transactions
- Listen to all interfaces by default
- Use logger in collerd
- Add docker-compose file with PostgreSQL

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-08-26 12:30:41 +02:00
01031a24ab
docs: Add API routes
Fixes #10.

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-08-26 11:53:22 +02:00
0ce540e92d
feat: Add metrics
Fixes #7.

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-08-26 09:26:15 +02:00
7c00b364d1
docs: Add READMEs
Signed-off-by: Julien Riou <julien@riou.xyz>
2025-08-24 15:48:12 +02:00
3970501666
refactor(copier): Remove duplicate version
Related to 55c78ee.

Signed-off-by: Julien Riou <julien@riou.xyz>
2025-08-23 09:48:36 +02:00
55c78eed38
fix: Show version for copier
Signed-off-by: Julien Riou <julien@riou.xyz>
2025-08-23 09:08:57 +02:00
ef9aca1f3b
Initial commit
Signed-off-by: Julien Riou <julien@riou.xyz>
2025-08-21 16:22:03 +02:00