Commit graph

207 commits

Author SHA1 Message Date
Daniel Szabo
aec6cab275 Merge branch 'master' of https://github.com/szabodanika/microbin 2023-07-04 21:56:47 +03:00
Daniel Szabo
4983ac867d Fix text-only private pastas crashing server
- Fixed a bug that caused encrypted uploads with no file to crash the server, as we tried to decrypt a non-existent file
- Changed wording on pasta auth page
- Removed unused import
2023-07-04 21:56:15 +03:00
Daniel Szabo
d7b4462892 Fix edit saving bug
Fixes #177
2023-07-04 19:23:58 +03:00
Daniel Szabo
4c367c0ddf Bump version to 2.0.1 (beta2) 2023-07-04 19:23:23 +03:00
Daniel Szabo
352d75f2f6 Update reference to new fabvicon 2023-07-04 19:23:04 +03:00
Dániel Szabó
3c4d3a83b4
Update README.md
Added link to PTS
2023-07-02 23:59:32 +03:00
Daniel Szabo
c45bca7b05 Merge branch 'master' of https://github.com/szabodanika/microbin 2023-07-02 18:26:55 +03:00
Daniel Szabo
9cd8f455aa New favicon 2023-07-02 18:26:54 +03:00
Dániel Szabó
a10cde6033
Update README.md
updated docker script command
2023-07-02 13:13:27 +03:00
Daniel Szabo
2d66c1abf8 Changed MICROBIN_NO_ETERNAL_PASTA to MICROBIN_ETERNAL_PASTA 2023-07-02 13:04:45 +03:00
Daniel Szabo
7c88276a63 Docker setup script
Plus added gitignore for docker volume
2023-07-02 13:04:28 +03:00
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