Commit graph

69 commits

Author SHA1 Message Date
Daniel Szabo
05941f0d6f Isolate pasta uploads from database.json by moving them into pasta_data/public/ 2022-07-31 21:49:36 +01:00
Daniel Szabo
7b4cd7c26e Implement upload filename sanitisation 2022-07-31 21:31:35 +01:00
Daniel Szabo
f54d5bd780 Add pasta ID + pasta URL to pasta page. Fix #36 2022-07-31 19:41:19 +01:00
Daniel Szabo
435c07d75e Implement manual deletion behaviour and fix #35 2022-07-31 19:18:07 +01:00
Dániel Szabó
cc09d1b529
Merge pull request #38 from uniqueNullptr2/uniqueNullptr2-fix-title-in-template
fix usage of title arg in template
2022-07-31 18:59:37 +01:00
uniqueNullptr2
60c3a1f9ac fix usage of title arg in template 2022-07-25 15:45:07 +02:00
Dániel Szabó
d4d94b61da
Merge pull request #34 from uniqueNullptr2/uniquenullptr2-add-config-from-env
add configuration from env to all clap options
2022-07-25 14:04:26 +01:00
Dániel Szabó
9053211904
Merge pull request #31 from dvdsk/file-size
Adds file size to pasta with an attachment
2022-07-25 13:39:00 +01:00
uniqueNullptr2
35a512680c fix mistype of syntax highlight option 2022-07-20 09:13:31 +02:00
uniqueNullptr2
bcd620ed43 add configuration from env to all clap options 2022-07-20 08:50:23 +02:00
Dániel Szabó
556f4e87df
Merge pull request #33 from amnesiacsardine/patch-1
Update to README.MD regarding Dockerfile
2022-07-18 00:05:56 +01:00
amnesiacsardine
fa88bce917
Update README.MD
Added how to pass command line arguments in the Dockerfile
2022-07-16 13:22:31 +02:00
Dániel Szabó
a5d326b679
Merge pull request #30 from dvdsk/master
Fixes #29 and displays pasta list in local timezone
2022-07-15 22:51:26 +01:00
Dániel Szabó
465873e095
Merge pull request #28 from FoxFromDarkness66/patch-2
Add bind address CL option
2022-07-15 22:47:39 +01:00
dvdsk
39233e9447
fixes #6 adding the size of the attached file 2022-07-14 01:08:13 +02:00
dvdsk
738e036cb5
pasta times are in systems local timezone 2022-07-13 23:55:28 +02:00
dvdsk
de2cc48f88
fixes #29 (time formating) 2022-07-13 23:54:48 +02:00
Dániel Szabó
0687f44137
Merge pull request #27 from FoxFromDarkness66/patch-1
Add AUR installation method
2022-07-07 23:12:48 +01:00
FixFromDarkness
fec933c5ec * Revert default address to 0.0.0.0 due to docker usage & compatibility
* Add --bind option to readme & change some examples
2022-07-07 20:08:29 +03:00
FixFromDarkness
cc2dd1e1fe * Add --bind option
* Changed default bind address to localhost
* Fix wrong log text about binding address
2022-07-07 19:45:31 +03:00
FixFromDarkness
85ed1b2b92
Add AUR installation method
AUR is Arch User Repository, "community-driven repository for Arch users. It contains package descriptions (PKGBUILDs) that allow you to compile a package from source with makepkg and then install it via pacman." 
I've made an AUR package that will allow any arch-based distro user to install and update microban to the latest version without manual version cheking&compiling. It will be easier for them to find it if you add information about this in the readme
2022-07-07 19:15:26 +03:00
Dániel Szabó
73ec59ccda
Merge pull request #21 from Arizard/master
Updates Dockerfile and adds docker build instructions
2022-06-27 20:58:01 +01:00
Arie
f5b9036a2a Uses volume absolute path, changes wording 2022-06-27 10:52:37 +10:00
Arie
0d43f2f60a Updates README with docker build instructions 2022-06-27 10:39:32 +10:00
Arie
aa9246da4e Removes COPY instruction for static directory 2022-06-27 10:37:25 +10:00
Dániel Szabó
1c21943c75
Merge pull request #17 from dvdsk/patch-1
Remove --linenumbers in systemd example
2022-06-05 19:30:05 +01:00
David Kleingeld
7f4b9f4aee
Remove --linenumbers in systemd example 2022-06-05 19:23:28 +02:00
Dániel Szabó
acd547dbf3
Update FUNDING.yml 2022-06-05 01:41:09 +01:00
Daniel Szabo
ce8bd4dd02 Added cargo information and readme badges 2022-06-05 00:20:23 +01:00
Dániel Szabó
81bf17e004
Merge pull request #16 from szabodanika/add_render.yaml
Add render.com deployment support
2022-06-05 00:02:44 +01:00
Dániel Szabó
92a29a02e5
Update render.yaml 2022-06-04 23:30:39 +01:00
Daniel Szabo
8b1702365c Add "Deploy to Render" button to README.MD 2022-06-04 23:05:47 +01:00
Daniel Szabo
291438e771 Update render.yaml 2022-06-04 22:55:16 +01:00
Daniel Szabo
497a8ef0e3 Add render.yaml 2022-06-04 22:51:09 +01:00
Daniel Szabo
ff921dc103 Additional changes to prev. commit 2022-06-04 22:21:22 +01:00
Daniel Szabo
fe013d9d85 Merge branch 'master' of https://github.com/szabodanika/microbin 2022-06-04 21:52:27 +01:00
Daniel Szabo
be3ac27920 Quick patch:
- Changed 302 responses to 200 where needed
- Fixed a bug where expiring pastas cause MicroBin to crahs
- Fixed a bug where water.css didn't have the correct MIME type
- Fixed a bug where missing doctype declaration caused styling issues in Firefox
2022-06-04 21:50:34 +01:00
Dániel Szabó
2f13a0e8e7
Create FUNDING.yml 2022-06-04 17:03:14 +01:00
Daniel Szabo
35d4df2cb8 Fixed a bug where opening private pastas would crash MicroBin 2022-06-03 18:11:14 +01:00
Daniel Szabo
4cc737731a Multiple enhancements and bugfixes
!Breaking change! - The updated version will not be able to read your old database file

Major improvements:
- Added editable pastas
- Added private pastas
- Added line numbers
- Added support for wide mode (1080p instead of 720p)
- Added syntax highlighting support
- Added read-only mode
- Added built-in help page
- Added option to remove logo, change title and footer text

Minor improvements:
- Improved looks in pure html mode
- Removed link to GitHub repo from navbar
- Broke up 7km long main.rs file into smaller modules
- Moved water.css into a template instead of serving it as an external resource
- Made Save button a bit bigger
- Updated README.MD

Bugfixes:
- Fixed a bug where an incorrect animal ID in a request would cause a crash
- Fixed a bug where an empty or corrupt JSON database would cause a crash
2022-06-03 17:24:34 +01:00
Daniel Szabo
1c873d23b5 Merge remote-tracking branch 'origin/master' 2022-05-09 22:36:18 +01:00
Daniel Szabo
cd2eea30ce Bugfix - #11
Also changed expiration date to show "Never" instead of unix epoch in the pasta list, and renamed a few variables in animalnumbers.rs to make the function more readable.
2022-05-09 22:36:13 +01:00
Dániel Szabó
25b1b649d8
Merge pull request #12 from szabodanika/add-docker
Docker support
2022-05-09 22:27:02 +01:00
Daniel Szabo
2983a01bc6 Docker support
Added Dockerfile and changed address bind from 127.0.0.1 to 0.0.0.0
2022-05-09 22:23:51 +01:00
Dániel Szabó
9e4940eb44
Update README.MD 2022-05-08 19:02:04 +01:00
Daniel Szabo
c9cf87e02b Updated README and index.png 2022-05-08 17:10:19 +01:00
Daniel Szabo
1e6bc916b8 missing dependencies from previous commit 2022-05-08 16:37:54 +01:00
Daniel Szabo
fe926086c2 CLI Args extension and file management fix
- added cli param to change threads used by server
- added cli param hide html header and/or footer
- added cli param to remove css styling
- added cli param to set http basic auth username and optionally password for the server
- file pastas now delete the files from the disk as well when they expire
2022-05-07 22:30:57 +01:00
Dániel Szabó
fc63b7aa1a
Update README.MD 2022-05-02 18:23:29 +01:00
Dániel Szabó
757f73ec5b
Merge pull request #5 from szabodanika/file-upload
File upload and persistence extension
2022-05-02 16:58:35 +01:00