Added file upload and TOS in french
Some checks are pending
Rust-build / build (push) Waiting to run
Some checks are pending
Rust-build / build (push) Waiting to run
This commit is contained in:
23
README.md
23
README.md
@ -1,9 +1,13 @@
|
||||
# SqPad
|
||||
A encrypted pastebin. Gives a webui where you can post text with a title, which can then be shared via a link. The server stores the text encrypted thanks to MagicCrypt using AES-256.
|
||||
|
||||
New : you can also send files.
|
||||
|
||||
## Install
|
||||
Juste compile and launch it in the same folder as "Files".
|
||||
|
||||
This is only for development, though.
|
||||
|
||||
## Docker
|
||||
Start by  if need be, then:
|
||||
```
|
||||
@ -20,21 +24,4 @@ The link can be used via a browser normally; it can also be used with curl or wg
|
||||
For now, notes are kept forever until some admin manually removes them.
|
||||
|
||||
## Warnings
|
||||
The size of a post is limited to 1MB. This value can be changed in the source code, see the end of the main function, at the bottom of src/main.rs :
|
||||
```rust
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
|
||||
HttpServer::new(move || {
|
||||
App::new()
|
||||
//Limit is configured here
|
||||
.app_data(web::FormConfig::default().limit(1024 * 1000))
|
||||
.service(get_index)
|
||||
.service(post_index)
|
||||
.service(show_post)
|
||||
})
|
||||
.bind(("0.0.0.0", 8080))?
|
||||
.run()
|
||||
.await
|
||||
}
|
||||
```
|
||||
The size of a post or upload is limited to 100MB. This value can be changed in the source code, see the end of the main function, at the bottom of src/main.rs.
|
||||
|
||||
Reference in New Issue
Block a user