Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noe-favier/filedrop-v2
A web app to drop files from a server to clients
https://github.com/noe-favier/filedrop-v2
cloud file file-sharing file-upload rocket rust rust-lang web webapp website
Last synced: about 5 hours ago
JSON representation
A web app to drop files from a server to clients
- Host: GitHub
- URL: https://github.com/noe-favier/filedrop-v2
- Owner: Noe-Favier
- License: apache-2.0
- Created: 2022-10-01T22:46:11.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-18T12:00:59.000Z (about 1 year ago)
- Last Synced: 2024-11-02T16:08:39.224Z (4 days ago)
- Topics: cloud, file, file-sharing, file-upload, rocket, rust, rust-lang, web, webapp, website
- Language: Rust
- Homepage:
- Size: 76.2 KB
- Stars: 16
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FileDrop V2 ?
## Story
this web app is a reengineering of [FileDrop V1](https://github.com/Noe-Favier/file_drop) which is a rust app created without any dependency.
Here, FileDrop V2 was realized with **A LOT** of lib (the most i could). Furthermore, it was realised insanely faster (and working better)
(*4Hours for V2 // +10Hours V1*) to achieve the same thing (even if i was learning the language in the first place).## stuff i'll do
just finishing another project rn but i'll add those features next :
- [ ] security (locking specific files with psswd) (+ an optional master password to get on the app)
- [ ] admin panel (in order to have some stats + setup security psswds)
- [ ] upload button
- [ ] a CSS rework (drop bootstrap + responsive)
- [ ] stay "easy to setup" and multiplatform## Demo
FiledropV2 is running at [noais.fr](https://noais.fr) if u wanna see
# How to setup :
## .env
settings which can be set in [.env](.env) :
- **files_path** : (*default* : `/var/file_drop_files`) > path to the folder where files will be stored
- **allow_create** : (*default* : `true`) > is FileDrop allowed to create that dir if it doesn't exists ?## More conf
This project was realised with [rocket.rs](https://rocket.rs/). U will find the conf file of the web server in [Rocket.toml](Rocket.toml).
for example, u will be able to :
- change the port
- enable tls (=https) (if you can) (i would do a reverse proxy)
- change the secret key *(see below)*### Changing secret_key
**IMPORTANT !**
on linux, run `openssl rand -base64 32` and replace the field 'secret_key' with the value returned by that command in [Rocket.toml](Rocket.toml).
More info about that [here](https://rocket.rs/v0.5-rc/guide/configuration/#secret-key).# How to run
FileDrop is written in rust, you will be able to run it like a normal rust app.
if you need help :
- [install rust](https://www.rust-lang.org/tools/install)
- [cargo run](https://doc.rust-lang.org/cargo/commands/cargo-run.html#examples)## Docker
> see [the docker hub repo](https://hub.docker.com/r/noecl/filedrop)
`docker run -p 80:8000 --name filedrop -it -d noecl/filedrop`