Commit graph

271 commits

Author SHA1 Message Date
Dániel Szabó
24be6cdeb6
Update README.md 2024-11-02 12:43:56 +02:00
Dániel Szabó
c5ae7d306f
Update README.md 2024-11-02 12:42:52 +02:00
Dániel Szabó
84e8f5ac5e
Merge pull request #203 from fastfailure/patch-1
Update broken documentation link
2024-10-24 13:55:45 +09:00
Dániel Szabó
92d2ac9c19
Merge pull request #211 from luk1337/luk/fixup
Minor fixups
2024-10-24 13:55:16 +09:00
Dániel Szabó
7c6660960d
Merge pull request #239 from jixunmoe/fix/32-bit-animal-numbers
fix: division by zero on 32-bit platform (#107, #118)
2024-10-24 13:49:45 +09:00
Dániel Szabó
8c4b039a03
Merge pull request #255 from Timshel/absolute
Attachments compatible with absolute path
2024-10-24 13:49:23 +09:00
Dániel Szabó
54e839ce6f
Merge pull request #246 from luk1337/luk/charset
Set charset=utf-8 for /raw/{id} response
2024-10-24 13:49:01 +09:00
Dániel Szabó
d3a7eaf072
Merge pull request #277 from dvdsk/streaming_file_up_down
Awnser Range requests and stream files downloads
2024-10-24 13:48:41 +09:00
Dániel Szabó
d6c06c0550
Merge pull request #267 from luochen1990/fix-privacy
Fix privacyDropdown is null issue
2024-10-24 13:48:04 +09:00
Dániel Szabó
043eb67f23
Merge pull request #260 from runofthemillgeek/fix/never-expire-condition
Fix never expire condition
2024-10-24 13:46:53 +09:00
Dániel Szabó
6f460ecd72
Merge pull request #268 from isaacasensio/patch-1
Fix default value comments for some environment variables
2024-10-24 13:46:28 +09:00
Dániel Szabó
f477bae5a8
Merge pull request #228 from secondubly/issue-221-fix
MICROBIN_UPLOADER_PASSWORD was missing from compose.yaml
2024-10-24 13:45:56 +09:00
Dániel Szabó
e841fdd320
Merge pull request #279 from dvdsk/no-c-deps
Adds a feature no-c-deps which makes microbin easy to crosscompile
2024-10-24 13:45:42 +09:00
Dániel Szabó
6e08eed32a
Merge pull request #281 from dvdsk/fix-json-db
Fix Json db losing already saved pasta's on crash/power failure
2024-10-24 13:43:46 +09:00
dvdsk
d0e0907ca9
Json db can no longer lose already saved pasta's
The database file was truncated before writes the complete list of
pastas from memory back into it. If power failed in between or microbin
crashed all pasta's would be lost.

This creates a new file then replaces the old with it once the writing
is done. Note the replace (rename) is usually (definitly on linux)
atomic. Therefore it either succeeds or fails and only the new changes
are lost.
2024-10-22 19:13:50 +02:00
dvdsk
28463e48c1
Adds a feature no-c-deps which makes microbin easy to crosscompile
With `no-c-deps` enabled microbin can be compiled for aarch64 by simply
passing in `--no-default-features`, `--no-c-deps` & `--target
aarch64-unknown-linux-musl`. The resulting binary is fully static and
does *not* depend on glibc. Therefore it can be deployed to any linux
target running an aarch64 cpu (arm). There is no need for any
containers.

There where four obstactles to easily statically linking microbin
with musl.

- The syntect library depended on the onigura regex engine. With
  `no-c-deps` it uses `fancy-regex` a slower alternative fully written
  in rust.
- Dependency actix-web supported zstd compression requiring the system
  zstd library to be present.
- The rusqlite library build and linked the C-library sqlite. That needs
  a crosscompiler and various crosscompile packages. With `no-c-deps`
  enabled the sqlite db option is disabled and the -json-db arg must be
  used. If the user does not pass -json-db microbin will panic when
  starting with a clear error message.
- reqwest was using openssl for reporting telemetry and checking for new
  versions. With `no-c-deps` it uses rustls with crypto provider
  rustcrypto. While rustcrypto has not been formally verified it should
  be good enough for sending telemetry (which should not contain any
  secure/personal data anyway) and checking versions.
2024-10-22 18:14:54 +02:00
dvdsk
b86adc7ac9
update deps + rustls 2024-10-22 01:40:41 +02:00
dvdsk
96de6125c9
Upgrade deps, builds upon pr #254 by Timshel 2024-10-22 01:14:26 +02:00
dvdsk
577d6246dc
Awnser Range requests and stream files downloads
Uses NamedFile from actix_files for unencrypted files instead of
reading them into memory and setting them as body.

Note the content_type is set by NamedFile now. The code for it is about
identical to what was previously there.
2024-10-21 17:38:05 +02:00
Isaac Asensio
5168d56491
Fix default value comments for some environment variables 2024-07-20 07:59:27 +02:00
LuoChen
5b4ce44743 Fix privacyDropdown is null issue 2024-07-09 19:57:25 +08:00
Sangeeth Sudheer
92c0b544ff
Fix never expire condition 2024-04-10 03:02:15 +05:30
Timshel
7d66d32ec4 attachments compatible with absolute path 2024-03-13 21:29:13 +01:00
Timshel
3a256305e7 Upgrade deps 2024-03-13 21:23:24 +01:00
LuK1337
70a666a854 Set charset=utf-8 for /raw/{id} response
This matches `<meta charset="utf-8">` in HTML and thus lets browser
decode content properly.
2023-12-23 19:02:49 +01:00
Jixun Wu
885c5c74b3 fix: division by zero on 32-bit platform (#107, #118) 2023-11-13 23:01:24 +00:00
secondubly
544f1d0bf6 MICROBIN_UPLOADER_PASSWORD was missing from compose.yaml 2023-10-09 13:53:38 -04:00
LuK1337
3b0c025e9b Hide "Privacy" if only public is supported 2023-08-11 00:32:29 +02:00
LuK1337
b028339b11 Make new pastas set editable to ARGS.editable 2023-08-10 23:29:03 +02:00
LuK1337
0223ead312 Fix #auth-form background color 2023-08-10 23:15:25 +02:00
LuK1337
c574282601 Unbreak password protected pastes when file upload is disabled 2023-08-10 22:43:14 +02:00
Lan Quil
b65fe28cec
Update broken documentation link
Replace documentation link (https://microbin.eu/documentation) with new one:
https://microbin.eu/docs/intro
2023-07-25 17:45:46 +02:00
Dániel Szabó
b8a0c5490d
Update FUNDING.yml 2023-07-15 11:06:43 +03:00
Dániel Szabó
c1fc2e22e5
Update compose.yaml
Fixes #181
2023-07-12 08:04:43 +03:00
Dániel Szabó
9688f913da
Fix typo in README 2023-07-11 22:05:57 +03:00
Daniel Szabo
4c57c27851 Fixed removal bug
Fixed a bug that caused private and secret uploads not to accept the correct password when being deleted
2023-07-11 21:22:26 +03:00
Daniel Szabo
7fdc89a48d Disabled ediiting for secrets
Realistically this privacy level should not allow modifying the data, but even if we did support that, the UX would be very annoying - it is better to make a new upload
2023-07-11 21:21:41 +03:00
Daniel Szabo
4a7360b90e Replaced "pasta" on all user-facing places with "upload"
- We understand what a pasta is, but let's avoid the situation when you send a link to your mom that ends with microbin.eu/pasta/dog-bat-cat and they misunderstand it.
- Also replaced /pastalist with just /list
- Internally kept "pasta" instead of "upload" to confuse everyone adopting MicroBin after v2
2023-07-11 20:58:34 +03:00
Daniel Szabo
a46312bf62 Fix upload list on mobile devices
Fixed bug that caused the table on /pastalist to break on narrow screens
2023-07-11 20:33:21 +03:00
Daniel Szabo
571bfbff1f Bump version for v2 release 2023-07-11 20:16:05 +03:00
Daniel Szabo
c7c54e35b4 Implemented uploader password
Minimal implementation of an auth mode that is read-only unless a password is provided. Enable MICROBIN_READONLY and set MICROBIN_UPLOADER_PASSWORD to try it out.

Fixes #106
2023-07-11 20:04:52 +03:00
Daniel Szabo
638f1bf510 Enabled HTML for footer text
Fixes #110
2023-07-11 19:16:47 +03:00
Daniel Szabo
8382457fc3 Merge branch 'master' of https://github.com/szabodanika/microbin 2023-07-11 17:36:37 +03:00
Daniel Szabo
917ce3c713 Update checking and telemetry improvements
- Implemented configuration telemetry
- Added option to disable version checking
- Updated URL for versioning and telemetry endpoint
- Added option to opt-in for a public MicroBin server list in the future
2023-07-11 17:36:33 +03:00
Dániel Szabó
6beb094d52
Update issue templates 2023-07-11 13:52:41 +03:00
Daniel Szabo
9e03864090 set openssl dependency as vendored
Fixes build github action error caused by dependency of a non-included openssl system binary in the action used to build MicroBin
2023-07-10 14:45:21 +03:00
Dániel Szabó
6e76cb750b
Install libss-dev for build action 2023-07-10 14:33:29 +03:00
Dániel Szabó
6505bdb262
Update website links 2023-07-10 14:25:19 +03:00
Daniel Szabo
590e3022e8 Bump version for v2 beta 4 2023-07-10 14:21:14 +03:00
Daniel Szabo
05126fee68 Improved password protection
- Implemented password protection for removals
- Added success message on password-protected upload creation and editing for clarity
- Made auth page focus password field when it's left empty
2023-07-10 14:19:11 +03:00