Commit graph

196 commits

Author SHA1 Message Date
Daniel Szabo
b414e1f11f Merge branch 'master' of https://github.com/szabodanika/microbin 2023-07-01 23:18:10 +03:00
Daniel Szabo
49326f3c52 Update Dockerfile 2023-07-01 23:18:06 +03:00
Daniel Szabo
4eaa259f49 Update release.yml 2023-07-01 22:36:39 +03:00
Dániel Szabó
8e8765dd2e
Update README.md 2023-07-01 22:24:05 +03:00
Daniel Szabo
bbeaab7cf9 Update GitHub Actions
Removed duplicate GH release
Updated set-output commands
Bumped softprops/action-gh-release to v0.1.15
2023-07-01 22:16:34 +03:00
Daniel Szabo
41b565f81d Fix integer overflow issue
Project was not compiling on a few targets, there is no need for this unelegant TB calculation here.
2023-07-01 21:43:17 +03:00
Daniel Szabo
38e4fa4fe7 update cargo version number 2023-07-01 21:20:43 +03:00
Daniel Szabo
e05596726b Update guide.html 2023-07-01 21:06:06 +03:00
Daniel Szabo
4ad9d51aaa Removed link to non-existent /about 2023-07-01 20:51:47 +03:00
Daniel Szabo
3a1fc7072a Renamed "How to use" page to Guide page 2023-07-01 20:50:22 +03:00
Daniel Szabo
8c18e423a3 Fix sort path bug
- Fixed a bug that caused unset short_path variable to crash the server
- Touched up .env file
2023-07-01 20:49:55 +03:00
Daniel Szabo
eda06a8df7 New logo and index images 2023-07-01 20:30:26 +03:00
Daniel Szabo
79c2b358ba Applied clippy suggestions 2023-07-01 20:06:49 +03:00
Daniel Szabo
6913beed3b Update .gitignore 2023-07-01 19:35:09 +03:00
Daniel Szabo
e87603ac2c Update README.md
Preparing for changes in v2
2023-07-01 19:34:14 +03:00
Daniel Szabo
647d030aea Update default .env
Fixed incorrect default values
2023-07-01 19:34:00 +03:00
Daniel Szabo
bc188e3d34 Microbin 2 beta 1 first commit
This is the first, early beta version of Microbin 2.

Microbin 2 brings a lot of improvements to Microbin. To name just the most important ones:
- Server-side and client-side encryption for uploads, including file attachments,
- SQLite database support by default,
- Reworked upload settings, 5 privacy levels,
- New administrator console (/admin),
- Automatic syntax highlighting,
- Image and video embedding,
- Refreshed styling and QoL features,
- New user guide page.

Beyond these,
- Added file upload size limits,
- Added sample .env file with description for each environmental variable,
- Removed Info page (moved to admin page),
- Pasta list now sorted from newer to older,
- Pasta terminology replaced with Upload,
- Files are now served with a proper service, not just as a public directory,
- Pastas are now stored in /attachments instead of /public.

As this is the first beta of Microbin v2, and I do not recommend updating to this in critical environments as long as we are in beta stage. I expect many bugs to emerge and v2 is also getting a few more smaller QoL features from the backlog. README and website won't be updated until v2 is stable and well-tested.

Fixes #164
Fixes #156
Fixes #153
Fixes #149
Fixes #139
Fixes #98
Fixes #4

Fixes #105 (sort of)
Fixes #97 (sort of)
Fixes #45 (sort of)
Fixes #22 (sort of)
2023-07-01 19:12:06 +03:00
Dániel Szabó
3d45357be3
Merge pull request #169 from szabodanika/dependabot/cargo/tokio-1.25.1
Bump tokio from 1.21.2 to 1.25.1
2023-06-26 12:31:29 +03:00
Dániel Szabó
b0988d08c1
Merge pull request #168 from szabodanika/dependabot/cargo/spin-0.9.8
Bump spin from 0.9.4 to 0.9.8
2023-06-26 12:31:20 +03:00
Dániel Szabó
8fdfe0294b
Merge pull request #167 from szabodanika/dependabot/cargo/h2-0.3.19
Bump h2 from 0.3.15 to 0.3.19
2023-06-26 12:31:13 +03:00
dependabot[bot]
f581cdd969
Bump tokio from 1.21.2 to 1.25.1
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.21.2 to 1.25.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.21.2...tokio-1.25.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-26 07:45:41 +00:00
dependabot[bot]
85d8fa53a3
Bump spin from 0.9.4 to 0.9.8
Bumps [spin](https://github.com/mvdnes/spin-rs) from 0.9.4 to 0.9.8.
- [Changelog](https://github.com/mvdnes/spin-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mvdnes/spin-rs/commits)

---
updated-dependencies:
- dependency-name: spin
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-26 07:45:31 +00:00
dependabot[bot]
a5406867b6
Bump h2 from 0.3.15 to 0.3.19
Bumps [h2](https://github.com/hyperium/h2) from 0.3.15 to 0.3.19.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.15...v0.3.19)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-26 07:44:09 +00:00
Dániel Szabó
4f9c447dee
Merge pull request #154 from egor-tensin/dockerfile
Dockerfile: improve caching
2023-06-26 10:26:24 +03:00
Dániel Szabó
92a529dae3
Merge pull request #155 from egor-tensin/monospace
Use monospace font in textarea's
2023-06-26 10:24:10 +03:00
Dániel Szabó
2a15f40e71
Merge pull request #161 from mooons/dev-escape-backslash
Escape backslash for Copy Text function
2023-06-26 10:21:38 +03:00
mooons
83f3209740 Escape backslash 2023-05-25 17:30:13 -07:00
Egor Tensin
833454b343 Use monospace font in textarea's
This commit makes the textareas (notably, when adding a pasta) use
monospace font (which is in line with other pastebin services and
arguably what the user wants/expects).
2023-05-02 22:38:54 +02:00
Egor Tensin
f28f1e2b5c Dockerfile: improve caching
This improves caching in Docker builds somewhat so that apt-get is not
run on every change.
2023-05-02 22:37:06 +02:00
Dániel Szabó
b6841a596d
Merge pull request #151 from frap129/short-path
Add short-path for changing URL provided by copy buttons
2023-04-20 19:42:47 +03:00
Joe Maples
95aa514a30 Add shortened endpoints for using short_path 2023-04-12 11:29:52 -04:00
Joe Maples
25d199721b Add short_path arg, use it for copy urls 2023-04-12 11:15:19 -04:00
Dániel Szabó
0dbe9498f8
add crates.io badge url 2023-03-26 23:09:40 +03:00
Daniel Szabo
c9c60aa546 increment version number and update homepage in Cargo.toml 2023-03-26 23:07:07 +03:00
Daniel Szabo
0eedf1c8e0 increment version number in Cargo.lock 2023-03-26 23:06:46 +03:00
Dániel Szabó
a2c8eacbf9
Merge pull request #115 from jchia/fix-edit
Follow-up to 7522d419
2023-03-26 22:34:37 +03:00
Dániel Szabó
b27ac0831f
Merge pull request #141 from DhruvaSambrani/master
Update header.html to fix extra space
2023-03-26 22:27:14 +03:00
Dániel Szabó
86f18f34d2
Merge pull request #128 from Tyfui90/defect/issue-127-default-expiry-option-never-unselected
default expiry of never selected in dropdown when passed as env var
2023-03-26 22:14:05 +03:00
Daniel Szabo
1c3493202f revert option grouping 2023-03-26 22:13:10 +03:00
Dániel Szabó
18e056106b
Merge pull request #146 from rissson/fix-create-no-expiration-data
Fix expiration on create if it's not specified and no_eternal_pasta is set
2023-03-26 22:01:51 +03:00
Dániel Szabó
ded125c89b
Merge pull request #143 from 7a6163/bugfix/xss
bugfix: stored XSS
2023-03-26 21:44:35 +03:00
Marc 'risson' Schmitt
d6f5c0ca52
create: refactor expiry conversion to timestamp
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
2023-02-24 23:31:50 +01:00
Marc 'risson' Schmitt
2f0ee11cae
Fix expiration on create if it's not specified and no_eternal_pasta is set
If no_eternal_pasta is specified, when calling /upload with no
expiration, the expiration currently defaults at 0. This change
makes it default to the maximal expiry.

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
2023-02-24 23:07:29 +01:00
Zac
6907bb4f13 bugfix: stored XSS
bugfix: Copy Text is not working when the button Copy Url does not exist.
2023-02-21 09:52:00 +08:00
Dhruva Sambrani
d8d05637db
Update header.html 2023-02-06 13:25:57 +05:30
tyfui90
5773c36699 default expiry of never selected in dropdown when passed as env var 2022-12-05 16:33:33 -08:00
Joshua Chia
04035269f3 Follow-up to 7522d419
In addition to the case of creating, #88 also affects the case of editing. This commit fixes editing.
2022-11-18 11:32:35 +08:00
Daniel Szabo
84136f1106 Merge branch 'master' of https://github.com/szabodanika/microbin 2022-11-14 21:43:14 +02:00
Daniel Szabo
ba784da74e Merge branch 'pr/95' 2022-11-14 21:42:35 +02:00
Dániel Szabó
0a80ac1359
Merge pull request #101 from albocc/feature/Add_3_days_expiration_option
Added expiration option for 3 days
2022-11-14 21:30:34 +02:00