mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 00:59:02 +03:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f66e129985 | ||
|
|
7c3970480e | ||
|
|
34bc8d411a |
43
CHANGELOG.md
43
CHANGELOG.md
@@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## [0.10.1] - 2022-06-02
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Panic when bind already used port
|
||||||
|
|
||||||
## [0.10.0] - 2022-06-02
|
## [0.10.0] - 2022-06-02
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
@@ -19,10 +25,6 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Change auth logic/options
|
- Change auth logic/options
|
||||||
- Improve ui
|
- Improve ui
|
||||||
|
|
||||||
### Miscellaneous Tasks
|
|
||||||
|
|
||||||
- Insert cli output
|
|
||||||
|
|
||||||
### Refactor
|
### Refactor
|
||||||
|
|
||||||
- Small improvement
|
- Small improvement
|
||||||
@@ -52,12 +54,6 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Add some headers to res
|
- Add some headers to res
|
||||||
- Support render-index/render-spa
|
- Support render-index/render-spa
|
||||||
|
|
||||||
### Miscellaneous Tasks
|
|
||||||
|
|
||||||
- Move src/assets out of src
|
|
||||||
- Update description
|
|
||||||
- Upgrade version
|
|
||||||
|
|
||||||
## [0.7.0] - 2022-05-31
|
## [0.7.0] - 2022-05-31
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
@@ -71,10 +67,6 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
- Drag and drop uploads, upload folder
|
- Drag and drop uploads, upload folder
|
||||||
|
|
||||||
### Miscellaneous Tasks
|
|
||||||
|
|
||||||
- Upgrade version
|
|
||||||
|
|
||||||
## [0.6.0] - 2022-05-31
|
## [0.6.0] - 2022-05-31
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
@@ -83,10 +75,6 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Distinct upload and delete operation
|
- Distinct upload and delete operation
|
||||||
- Support range requests
|
- Support range requests
|
||||||
|
|
||||||
### Miscellaneous Tasks
|
|
||||||
|
|
||||||
- Upgrade version
|
|
||||||
|
|
||||||
### Refactor
|
### Refactor
|
||||||
|
|
||||||
- Improve code quality
|
- Improve code quality
|
||||||
@@ -99,12 +87,6 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Add no-auth-read options
|
- Add no-auth-read options
|
||||||
- Unzip zip file when unload
|
- Unzip zip file when unload
|
||||||
|
|
||||||
### Miscellaneous Tasks
|
|
||||||
|
|
||||||
- Reorganize web static files
|
|
||||||
- Rename src/static to src/assets
|
|
||||||
- Upgrade version
|
|
||||||
|
|
||||||
## [0.4.0] - 2022-05-29
|
## [0.4.0] - 2022-05-29
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
@@ -112,10 +94,6 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Replace --static option to --no-edit
|
- Replace --static option to --no-edit
|
||||||
- Add cors
|
- Add cors
|
||||||
|
|
||||||
### Miscellaneous Tasks
|
|
||||||
|
|
||||||
- Upgrade version
|
|
||||||
|
|
||||||
## [0.3.0] - 2022-05-29
|
## [0.3.0] - 2022-05-29
|
||||||
|
|
||||||
### Documentation
|
### Documentation
|
||||||
@@ -162,10 +140,6 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Add logger
|
- Add logger
|
||||||
- Download folder as zip file
|
- Download folder as zip file
|
||||||
|
|
||||||
### Miscellaneous Tasks
|
|
||||||
|
|
||||||
- Update cargo metadata
|
|
||||||
|
|
||||||
## [0.1.0] - 2022-05-26
|
## [0.1.0] - 2022-05-26
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
@@ -183,11 +157,6 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Support delete operation
|
- Support delete operation
|
||||||
- Remove parent path
|
- Remove parent path
|
||||||
|
|
||||||
### Miscellaneous Tasks
|
|
||||||
|
|
||||||
- Add readme and license
|
|
||||||
- Update cargo metadata
|
|
||||||
|
|
||||||
### Styling
|
### Styling
|
||||||
|
|
||||||
- Cargo fmt
|
- Cargo fmt
|
||||||
|
|||||||
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -286,7 +286,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "duf"
|
name = "duf"
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-walkdir",
|
"async-walkdir",
|
||||||
"async_zip",
|
"async_zip",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "duf"
|
name = "duf"
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["sigoden <sigoden@gmail.com>"]
|
authors = ["sigoden <sigoden@gmail.com>"]
|
||||||
description = "Duf is a fully functional file server."
|
description = "Duf is a fully functional file server."
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @type Element
|
||||||
|
*/
|
||||||
let $pathsTable, $pathsTableBody, $uploadersTable;
|
let $pathsTable, $pathsTableBody, $uploadersTable;
|
||||||
|
/**
|
||||||
|
* @type string
|
||||||
|
*/
|
||||||
let baseDir;
|
let baseDir;
|
||||||
|
|
||||||
class Uploader {
|
class Uploader {
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ pub async fn serve(args: Args) -> BoxResult<()> {
|
|||||||
.with_single_cert(certs.clone(), key.clone())?;
|
.with_single_cert(certs.clone(), key.clone())?;
|
||||||
let tls_acceptor = TlsAcceptor::from(Arc::new(config));
|
let tls_acceptor = TlsAcceptor::from(Arc::new(config));
|
||||||
let arc_acceptor = Arc::new(tls_acceptor);
|
let arc_acceptor = Arc::new(tls_acceptor);
|
||||||
let listener = TcpListener::bind(&socket_addr).await.unwrap();
|
let listener = TcpListener::bind(&socket_addr).await?;
|
||||||
let incoming = tokio_stream::wrappers::TcpListenerStream::new(listener);
|
let incoming = tokio_stream::wrappers::TcpListenerStream::new(listener);
|
||||||
let incoming = hyper::server::accept::from_stream(incoming.filter_map(|socket| async {
|
let incoming = hyper::server::accept::from_stream(incoming.filter_map(|socket| async {
|
||||||
match socket {
|
match socket {
|
||||||
@@ -86,7 +86,7 @@ pub async fn serve(args: Args) -> BoxResult<()> {
|
|||||||
print_listening(args.address.as_str(), args.port, true);
|
print_listening(args.address.as_str(), args.port, true);
|
||||||
server.await?;
|
server.await?;
|
||||||
} else {
|
} else {
|
||||||
let server = hyper::Server::bind(&socket_addr).serve(make_service_fn(move |_| {
|
let server = hyper::Server::try_bind(&socket_addr)?.serve(make_service_fn(move |_| {
|
||||||
let inner = inner.clone();
|
let inner = inner.clone();
|
||||||
async move {
|
async move {
|
||||||
Ok::<_, Infallible>(service_fn(move |req| {
|
Ok::<_, Infallible>(service_fn(move |req| {
|
||||||
|
|||||||
Reference in New Issue
Block a user