commit 8044b747ceb25d30048e5d07e35cbf44af913e3b Author: C炳 <15163222+cbing2002@user.noreply.gitee.com> Date: Sat Dec 7 19:08:19 2024 +0800 init diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..39bcab0 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,34 @@ +name: build and release + +on: + push: + branches: + - main + schedule: + - cron: '0 1 * * *' + +jobs: + build-release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Get Version + run: | + ./check.sh + echo "tag=$(cat tag)" >> $GITHUB_ENV + + - name: Build + if: ${{ env.tag != '0' }} + run: ./build.sh + + - name: Release + uses: softprops/action-gh-release@v2 + if: ${{ env.tag != '0' }} + with: + tag_name: v${{ env.tag }} + files: | + *.deb + Packages + Release \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..081ff8b --- /dev/null +++ b/LICENSE @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) 2024 wcbing + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e5b77f7 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +自行打包的 [dufs](https://github.com/sigoden/dufs),供 Debian 或其他发行版上使用。 + +Self-packaged [dufs](https://github.com/sigoden/dufs) for use on Debian or other distro. + + +## Usage/用法 + +```sh +echo "deb [trusted=yes] https://github.com/wcbing/dufs-debs/releases/latest/download ./" | + sudo tee /etc/apt/sources.list.d/dufs.list +sudo apt update +``` \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..f35c20f --- /dev/null +++ b/build.sh @@ -0,0 +1,39 @@ +#!/bin/sh + +PACKAGE="dufs" +REPO="sigoden/dufs" + +VERSION="$(cat tag)" + +ARCH="amd64 arm64" +AMD64_FILENAME="dufs-v$VERSION-x86_64-unknown-linux-musl.tar.gz" +ARM64_FILENAME="dufs-v$VERSION-aarch64-unknown-linux-musl.tar.gz" + +get_url_by_arch() { + case $1 in + "amd64") echo "https://github.com/$REPO/releases/latest/download/$AMD64_FILENAME" ;; + "arm64") echo "https://github.com/$REPO/releases/latest/download/$ARM64_FILENAME" ;; + esac +} + +build() { + BASE_DIR="$PACKAGE"_"$VERSION"-1_"$1" + cp -r templates "$BASE_DIR" + sed -i "s/Architecture: arch/Architecture: $1/" "$BASE_DIR/DEBIAN/control" + sed -i "s/Version: version/Version: $VERSION-1/" "$BASE_DIR/DEBIAN/control" + curl -sLo "$BASE_DIR/usr/share/doc/dufs/CHANGELOG.md" "https://raw.githubusercontent.com/sigoden/dufs/refs/heads/main/CHANGELOG.md" + curl -sLo "$PACKAGE-$1.tar.gz" "$(get_url_by_arch $1)" + tar -xzf "$PACKAGE-$1.tar.gz" + mv "$PACKAGE" "$BASE_DIR/usr/bin/$PACKAGE" + chmod 755 "$BASE_DIR/usr/bin/$PACKAGE" + dpkg-deb --build --root-owner-group "$BASE_DIR" +} + +for i in $ARCH; do + echo "Building $i package..." + build "$i" +done + +# Create repo files +apt-ftparchive packages . > Packages +apt-ftparchive release . > Release diff --git a/check.sh b/check.sh new file mode 100755 index 0000000..8d663a9 --- /dev/null +++ b/check.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +REPO="sigoden/dufs" +LOCAL_REPO="wcbing/dufs-debs" + +get_github_latest_tag() { + curl -sI "https://github.com/$1/releases/latest" | grep "releases/tag" | + sed -E 's#.*/releases/tag/[vV]*([^_\r]*).*#\1#' +} + +LOCAL_VERSION=$(get_github_latest_tag "$LOCAL_REPO") +if [ -z "$LOCAL_VERSION" ]; then + echo "Error: Can't get version tag from $LOCAL_REPO." + LOCAL_VERSION="0" +fi + +VERSION=$(get_github_latest_tag "$REPO") +if [ -z "$VERSION" ]; then + echo "Error: Can't get version tag from $REPO." + echo 0 > tag + exit 1 +elif [ "$LOCAL_VERSION" = "$VERSION" ]; then + echo "No update." + echo 0 > tag + exit 0 +fi + +echo "$VERSION" > tag +echo "Update to $VERSION from $LOCAL_VERSION." diff --git a/templates/DEBIAN/control b/templates/DEBIAN/control new file mode 100644 index 0000000..67ce4f5 --- /dev/null +++ b/templates/DEBIAN/control @@ -0,0 +1,9 @@ +Package: dufs +Version: version +Architecture: arch +Maintainer: wcbing +Section: web +Priority: optional +Homepage: https://github.com/sigoden/dufs +Description: A file server that supports static serving, uploading, + searching, accessing control, webdav... diff --git a/templates/usr/bin/dufs b/templates/usr/bin/dufs new file mode 100644 index 0000000..645b94d --- /dev/null +++ b/templates/usr/bin/dufs @@ -0,0 +1,2 @@ +This file will be replaced. +这个文件将会被替换。 \ No newline at end of file diff --git a/templates/usr/share/doc/dufs/CHANGELOG.md b/templates/usr/share/doc/dufs/CHANGELOG.md new file mode 100644 index 0000000..225f1ae --- /dev/null +++ b/templates/usr/share/doc/dufs/CHANGELOG.md @@ -0,0 +1,666 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [0.43.0] - 2024-11-04 + +### Bug Fixes + +- Auth failed if password contains `:` ([#449](https://github.com/sigoden/dufs/issues/449)) +- Resolve speed bottleneck in 10G network ([#451](https://github.com/sigoden/dufs/issues/451)) + +### Features + +- Webui displays subdirectory items ([#457](https://github.com/sigoden/dufs/issues/457)) +- Support binding abstract unix socket ([#468](https://github.com/sigoden/dufs/issues/468)) +- Provide healthcheck API ([#474](https://github.com/sigoden/dufs/issues/474)) + +### Refactor + +- Do not show size for Dir ([#447](https://github.com/sigoden/dufs/issues/447)) + +## [0.42.0] - 2024-09-01 + +### Bug Fixes + +- Garbled characters caused by atob ([#422](https://github.com/sigoden/dufs/issues/422)) +- Webui unexpected save-btn when file is non-editable ([#429](https://github.com/sigoden/dufs/issues/429)) +- Login succeeded but popup `Forbidden` ([#437](https://github.com/sigoden/dufs/issues/437)) + +### Features + +- Implements remaining http cache conditionalss ([#407](https://github.com/sigoden/dufs/issues/407)) +- Base64 index-data to avoid misencoding ([#421](https://github.com/sigoden/dufs/issues/421)) +- Webui support logout ([#439](https://github.com/sigoden/dufs/issues/439)) + +### Refactor + +- No inline scripts in HTML ([#391](https://github.com/sigoden/dufs/issues/391)) +- Return 400 for propfind request when depth is neither 0 nor 1 ([#403](https://github.com/sigoden/dufs/issues/403)) +- Remove sabredav-partialupdate from DAV res header ([#415](https://github.com/sigoden/dufs/issues/415)) +- Date formatting in cache tests ([#428](https://github.com/sigoden/dufs/issues/428)) +- Some query params work as flag and must not accept a value ([#431](https://github.com/sigoden/dufs/issues/431)) +- Improve logout at asserts/index.js ([#440](https://github.com/sigoden/dufs/issues/440)) +- Make logout works on safari ([#442](https://github.com/sigoden/dufs/issues/442)) + +## [0.41.0] - 2024-05-22 + +### Bug Fixes + +- Timestamp format of getlastmodified in dav xml ([#366](https://github.com/sigoden/dufs/issues/366)) +- Strange issue that occurs only on Microsoft WebDAV ([#382](https://github.com/sigoden/dufs/issues/382)) +- Head div overlap main contents when wrap ([#386](https://github.com/sigoden/dufs/issues/386)) + +### Features + +- Tls handshake timeout ([#368](https://github.com/sigoden/dufs/issues/368)) +- Add api to get the hash of a file ([#375](https://github.com/sigoden/dufs/issues/375)) +- Add log-file option ([#383](https://github.com/sigoden/dufs/issues/383)) + +### Refactor + +- Digest_auth related tests ([#372](https://github.com/sigoden/dufs/issues/372)) +- Add fixed-width numerals to date and size on file list page ([#378](https://github.com/sigoden/dufs/issues/378)) + +## [0.40.0] - 2024-02-13 + +### Bug Fixes + +- Guard req and destination path ([#359](https://github.com/sigoden/dufs/issues/359)) + +### Features + +- Revert supporting for forbidden permission ([#352](https://github.com/sigoden/dufs/issues/352)) + +### Refactor + +- Do not try to bind ipv6 if no ipv6 ([#348](https://github.com/sigoden/dufs/issues/348)) +- Improve invalid auth ([#356](https://github.com/sigoden/dufs/issues/356)) +- Improve resolve_path and handle_assets, abandon guard_path ([#360](https://github.com/sigoden/dufs/issues/360)) + +## [0.39.0] - 2024-01-11 + +### Bug Fixes + +- Upload more than 100 files in directory ([#317](https://github.com/sigoden/dufs/issues/317)) +- Auth precedence ([#325](https://github.com/sigoden/dufs/issues/325)) +- Serve files with names containing newline char ([#328](https://github.com/sigoden/dufs/issues/328)) +- Corrupted zip when downloading large folders ([#337](https://github.com/sigoden/dufs/issues/337)) + +### Features + +- Empty search `?q=` list all paths ([#311](https://github.com/sigoden/dufs/issues/311)) +- Add `--compress` option ([#319](https://github.com/sigoden/dufs/issues/319)) +- Upgrade to hyper 1.0 ([#321](https://github.com/sigoden/dufs/issues/321)) +- Auth supports forbidden permissions ([#329](https://github.com/sigoden/dufs/issues/329)) +- Supports resumable uploads ([#343](https://github.com/sigoden/dufs/issues/343)) + +### Refactor + +- Change the format of www-authenticate ([#312](https://github.com/sigoden/dufs/issues/312)) +- Change the value name of `--config` ([#313](https://github.com/sigoden/dufs/issues/313)) +- Optimize http range parsing and handling ([#323](https://github.com/sigoden/dufs/issues/323)) +- Propfind with auth no need to list all ([#344](https://github.com/sigoden/dufs/issues/344)) + +## [0.38.0] - 2023-11-28 + +### Bug Fixes + +- Unable to start if config file omit bind/port fields ([#294](https://github.com/sigoden/dufs/issues/294)) + +### Features + +- Password can contain `:` `@` `|` ([#297](https://github.com/sigoden/dufs/issues/297)) +- Deprecate the use of `|` to separate auth rules ([#298](https://github.com/sigoden/dufs/issues/298)) +- More flexible config values ([#299](https://github.com/sigoden/dufs/issues/299)) +- Ui supports view file ([#301](https://github.com/sigoden/dufs/issues/301)) + +### Refactor + +- Take improvements from the edge browser ([#289](https://github.com/sigoden/dufs/issues/289)) +- Ui change the cursor for upload-btn to a pointer ([#291](https://github.com/sigoden/dufs/issues/291)) +- Ui improve uploading progress ([#296](https://github.com/sigoden/dufs/issues/296)) + +## [0.37.1] - 2023-11-08 + +### Bug Fixes + +- Use DUFS_CONFIG to specify the config file path ([#286](https://github.com/sigoden/dufs/issues/286) + +## [0.37.0] - 2023-11-08 + +### Bug Fixes + +- Sort path ignore case ([#264](https://github.com/sigoden/dufs/issues/264)) +- Ui show user-name next to the user-icon ([#278](https://github.com/sigoden/dufs/issues/278)) +- Auto delete half-uploaded files ([#280](https://github.com/sigoden/dufs/issues/280)) + +### Features + +- Deprecate `--auth-method`, as both options are available ([#279](https://github.com/sigoden/dufs/issues/279)) +- Support config file with `--config` option ([#281](https://github.com/sigoden/dufs/issues/281)) +- Support hashed password ([#283](https://github.com/sigoden/dufs/issues/283)) + +### Refactor + +- Remove one clone on `assets_prefix` ([#270](https://github.com/sigoden/dufs/issues/270)) +- Optimize tests +- Improve code quality ([#282](https://github.com/sigoden/dufs/issues/282)) + +## [0.36.0] - 2023-08-24 + +### Bug Fixes + +- Ui readonly if no write perm ([#258](https://github.com/sigoden/dufs/issues/258)) + +### Testing + +- Remove dependency on native tls ([#255](https://github.com/sigoden/dufs/issues/255)) + +## [0.35.0] - 2023-08-14 + +### Bug Fixes + +- Search should ignore entry path ([#235](https://github.com/sigoden/dufs/issues/235)) +- Typo __ASSERTS_PREFIX__ ([#252](https://github.com/sigoden/dufs/issues/252)) + +### Features + +- Sort by type first, then sort by name/mtime/size ([#241](https://github.com/sigoden/dufs/issues/241)) + +## [0.34.2] - 2023-06-05 + +### Bug Fixes + +- Ui refresh page after login ([#230](https://github.com/sigoden/dufs/issues/230)) +- Webdav only see public folder even logging in ([#231](https://github.com/sigoden/dufs/issues/231)) + +## [0.34.1] - 2023-06-02 + +### Bug Fixes + +- Auth logic ([#224](https://github.com/sigoden/dufs/issues/224)) +- Allow all cors headers and methods ([#225](https://github.com/sigoden/dufs/issues/225)) + +### Refactor + +- Ui checkAuth ([#226](https://github.com/sigoden/dufs/issues/226)) + +## [0.34.0] - 2023-06-01 + +### Bug Fixes + +- URL-encoded filename when downloading in safari ([#203](https://github.com/sigoden/dufs/issues/203)) +- Ui path table show move action ([#219](https://github.com/sigoden/dufs/issues/219)) +- Ui set default max uploading to 1 ([#220](https://github.com/sigoden/dufs/issues/220)) + +### Features + +- Webui editing support multiple encodings ([#197](https://github.com/sigoden/dufs/issues/197)) +- Add timestamp metadata to generated zip file ([#204](https://github.com/sigoden/dufs/issues/204)) +- Show precise file size with decimal ([#210](https://github.com/sigoden/dufs/issues/210)) +- [**breaking**] New auth ([#218](https://github.com/sigoden/dufs/issues/218)) + +### Refactor + +- Cli positional rename root => SERVE_PATH([#215](https://github.com/sigoden/dufs/issues/215)) + +## [0.33.0] - 2023-03-17 + +### Bug Fixes + +- Cors allow-request-header add content-type ([#184](https://github.com/sigoden/dufs/issues/184)) +- Hidden don't works on some files ([#188](https://github.com/sigoden/dufs/issues/188)) +- Basic auth sometimes does not work ([#194](https://github.com/sigoden/dufs/issues/194)) + +### Features + +- Guess plain text encoding then set content-type charset ([#186](https://github.com/sigoden/dufs/issues/186)) + +### Refactor + +- Improve error handle ([#195](https://github.com/sigoden/dufs/issues/195)) + +## [0.32.0] - 2023-02-22 + +### Bug Fixes + +- Set the STOPSIGNAL to SIGINT for Dockerfile +- Remove Method::Options auth check ([#168](https://github.com/sigoden/dufs/issues/168)) +- Clear search input also clear query ([#178](https://github.com/sigoden/dufs/issues/178)) + +### Features + +- [**breaking**] Add option --allow-archive ([#152](https://github.com/sigoden/dufs/issues/152)) +- Use env var for args ([#170](https://github.com/sigoden/dufs/issues/170)) +- Hiding only directories instead of files ([#175](https://github.com/sigoden/dufs/issues/175)) +- API to search and list directories ([#177](https://github.com/sigoden/dufs/issues/177)) +- Support edit files ([#179](https://github.com/sigoden/dufs/issues/179)) +- Support new file ([#180](https://github.com/sigoden/dufs/issues/180)) +- Ui improves the login experience ([#182](https://github.com/sigoden/dufs/issues/182)) + +## [0.31.0] - 2022-11-11 + +### Bug Fixes + +- Auth not works with --path-prefix ([#138](https://github.com/sigoden/dufs/issues/138)) +- Don't search on empty query string ([#140](https://github.com/sigoden/dufs/issues/140)) +- Status code for MKCOL on existing resource ([#142](https://github.com/sigoden/dufs/issues/142)) +- Panic on PROPFIND // ([#144](https://github.com/sigoden/dufs/issues/144)) + +### Features + +- Support unix sockets ([#145](https://github.com/sigoden/dufs/issues/145)) + +## [0.30.0] - 2022-09-09 + +### Bug Fixes + +- Hide path by ext name ([#126](https://github.com/sigoden/dufs/issues/126)) + +### Features + +- Support sort by name, mtime, size ([#128](https://github.com/sigoden/dufs/issues/128)) +- Add --assets options to override assets ([#134](https://github.com/sigoden/dufs/issues/134)) + +## [0.29.0] - 2022-08-03 + +### Bug Fixes + +- Table row hover highlighting in dark mode ([#122](https://github.com/sigoden/dufs/issues/122)) + +### Features + +- Support ecdsa tls cert ([#119](https://github.com/sigoden/dufs/issues/119)) + +## [0.28.0] - 2022-08-01 + +### Bug Fixes + +- File path contains special characters ([#114](https://github.com/sigoden/dufs/issues/114)) + +### Features + +- Add table row hover ([#115](https://github.com/sigoden/dufs/issues/115)) +- Support customize http log format ([#116](https://github.com/sigoden/dufs/issues/116)) + +## [0.27.0] - 2022-07-25 + +### Features + +- Improve hidden to support glob ([#108](https://github.com/sigoden/dufs/issues/108)) +- Adjust digest auth timeout to 1day ([#110](https://github.com/sigoden/dufs/issues/110)) + +## [0.26.0] - 2022-07-11 + +### Bug Fixes + +- Cors headers ([#100](https://github.com/sigoden/dufs/issues/100)) + +### Features + +- Make --path-prefix works on serving single file ([#102](https://github.com/sigoden/dufs/issues/102)) + +## [0.25.0] - 2022-07-06 + +### Features + +- Ui supports creating folder ([#91](https://github.com/sigoden/dufs/issues/91)) +- Ui supports move folder/file to new path ([#92](https://github.com/sigoden/dufs/issues/92)) +- Check permission on move/copy destination ([#93](https://github.com/sigoden/dufs/issues/93)) +- Add completions ([#97](https://github.com/sigoden/dufs/issues/97)) +- Limit the number of concurrent uploads ([#98](https://github.com/sigoden/dufs/issues/98)) + +## [0.24.0] - 2022-07-02 + +### Bug Fixes + +- Unexpected stack overflow when searching a lot ([#87](https://github.com/sigoden/dufs/issues/87)) + +### Features + +- Allow search with --render-try-index ([#88](https://github.com/sigoden/dufs/issues/88)) + +## [0.23.1] - 2022-06-30 + +### Bug Fixes + +- Safari layout and compatibility ([#83](https://github.com/sigoden/dufs/issues/83)) +- Permissions of unzipped files ([#84](https://github.com/sigoden/dufs/issues/84)) + +## [0.23.0] - 2022-06-29 + +### Features + +- Use feature to conditional support tls ([#77](https://github.com/sigoden/dufs/issues/77)) + +### Ci + +- Support more platforms ([#76](https://github.com/sigoden/dufs/issues/76)) + +## [0.22.0] - 2022-06-26 + +### Features + +- Support hiding folders with --hidden ([#73](https://github.com/sigoden/dufs/issues/73)) + +## [0.21.0] - 2022-06-23 + +### Bug Fixes + +- Escape name contains html escape code ([#65](https://github.com/sigoden/dufs/issues/65)) + +### Features + +- Use custom logger with timestamp in rfc3339 ([#67](https://github.com/sigoden/dufs/issues/67)) + +### Refactor + +- Split css/js from index.html ([#68](https://github.com/sigoden/dufs/issues/68)) + +## [0.20.0] - 2022-06-20 + +### Bug Fixes + +- DecodeURI searching string ([#61](https://github.com/sigoden/dufs/issues/61)) + +### Features + +- Added basic auth ([#60](https://github.com/sigoden/dufs/issues/60)) +- Add option --allow-search ([#62](https://github.com/sigoden/dufs/issues/62)) + +## [0.19.0] - 2022-06-19 + +### Features + +- [**breaking**] Path level access control ([#52](https://github.com/sigoden/dufs/issues/52)) +- Serve single file ([#54](https://github.com/sigoden/dufs/issues/54)) +- Ui hidden root dirname ([#58](https://github.com/sigoden/dufs/issues/58)) +- Reactive webpage ([#51](https://github.com/sigoden/dufs/issues/51)) +- [**breaking**] Rename to dufs ([#59](https://github.com/sigoden/dufs/issues/59)) + +### Refactor + +- [**breaking**] Rename --cors to --enable-cors ([#57](https://github.com/sigoden/dufs/issues/57)) + +## [0.18.0] - 2022-06-18 + +### Features + +- Add option --render-try-index ([#47](https://github.com/sigoden/dufs/issues/47)) +- Add slash to end of dir href + +## [0.17.1] - 2022-06-16 + +### Bug Fixes + +- Range request ([#44](https://github.com/sigoden/dufs/issues/44)) + +## [0.17.0] - 2022-06-15 + +### Bug Fixes + +- Webdav propfind dir with slash ([#42](https://github.com/sigoden/dufs/issues/42)) + +### Features + +- Listen both ipv4 and ipv6 by default ([#40](https://github.com/sigoden/dufs/issues/40)) + +### Refactor + +- Trivial changes ([#41](https://github.com/sigoden/dufs/issues/41)) + +## [0.16.0] - 2022-06-12 + +### Features + +- Implement head method ([#33](https://github.com/sigoden/dufs/issues/33)) +- Display upload speed and time left ([#34](https://github.com/sigoden/dufs/issues/34)) +- Support tls-key in pkcs#8 format ([#35](https://github.com/sigoden/dufs/issues/35)) +- Options method return status 200 + +### Testing + +- Add integration tests ([#36](https://github.com/sigoden/dufs/issues/36)) + +## [0.15.1] - 2022-06-11 + +### Bug Fixes + +- Cannot upload ([#32](https://github.com/sigoden/dufs/issues/32)) + +## [0.15.0] - 2022-06-10 + +### Bug Fixes + +- Encode webdav href as uri ([#28](https://github.com/sigoden/dufs/issues/28)) +- Query dir param + +### Features + +- Add basic dark theme ([#29](https://github.com/sigoden/dufs/issues/29)) +- Add empty state placeholder to page([#30](https://github.com/sigoden/dufs/issues/30)) + +## [0.14.0] - 2022-06-07 + +### Bug Fixes + +- Send index page with content-type ([#26](https://github.com/sigoden/dufs/issues/26)) + +### Features + +- Support ipv6 ([#25](https://github.com/sigoden/dufs/issues/25)) +- Add favicon ([#27](https://github.com/sigoden/dufs/issues/27)) + +## [0.13.2] - 2022-06-06 + +### Bug Fixes + +- Filename xml escaping +- Escape path-prefix/url-prefix different + +## [0.13.1] - 2022-06-05 + +### Bug Fixes + +- Escape filename ([#21](https://github.com/sigoden/dufs/issues/21)) + +### Refactor + +- Use logger ([#22](https://github.com/sigoden/dufs/issues/22)) + +## [0.13.0] - 2022-06-05 + +### Bug Fixes + +- Ctrl+c not exit sometimes + +### Features + +- Implement more webdav methods ([#13](https://github.com/sigoden/dufs/issues/13)) +- Use digest auth ([#14](https://github.com/sigoden/dufs/issues/14)) +- Add webdav proppatch handler ([#18](https://github.com/sigoden/dufs/issues/18)) + +## [0.12.1] - 2022-06-04 + +### Features + +- Support webdav ([#10](https://github.com/sigoden/dufs/issues/10)) +- Remove unzip uploaded feature ([#11](https://github.com/sigoden/dufs/issues/11)) + +## [0.11.0] - 2022-06-03 + +### Features + +- Support gracefully shutdown server +- Listen 0.0.0.0 by default + +## [0.10.1] - 2022-06-02 + +### Bug Fixes + +- Panic when bind already used port + +## [0.10.0] - 2022-06-02 + +### Bug Fixes + +- Remove unzip file even failed to unzip +- Rename --no-auth-read to --no-auth-access +- Broken ui + +### Documentation + +- Refactor readme + +### Features + +- Change auth logic/options +- Improve ui + +### Refactor + +- Small improvement + +## [0.9.0] - 2022-06-02 + +### Documentation + +- Improve readme + +### Features + +- Support path prefix +- List all ifaces when listening 0.0.0.0 +- Support tls + +## [0.8.0] - 2022-06-01 + +### Bug Fixes + +- Some typos +- Caught 500 if no permission to access dir + +### Features + +- Cli add allow-symlink option +- Add some headers to res +- Support render-index/render-spa + +## [0.7.0] - 2022-05-31 + +### Bug Fixes + +- Downloaded zip file has no.zip ext in firefox +- Unzip override existed file in uploadonly mode +- Miss file 500 +- Not found dir when allow_upload is false + +### Features + +- Drag and drop uploads, upload folder + +## [0.6.0] - 2022-05-31 + +### Features + +- Delete confirm +- Distinct upload and delete operation +- Support range requests + +### Refactor + +- Improve code quality + +## [0.5.0] - 2022-05-30 + +### Features + +- Add mime and cache headers to response +- Add no-auth-read options +- Unzip zip file when unload + +## [0.4.0] - 2022-05-29 + +### Features + +- Replace --static option to --no-edit +- Add cors + +## [0.3.0] - 2022-05-29 + +### Documentation + +- Update readme demo png + +### Features + +- Automatically create dir while uploading +- Support searching + +### Refactor + +- Handler zip + +### Styling + +- Optimize css + +## [0.2.1] - 2022-05-28 + +### Bug Fixes + +- Cannot upload in root +- Optimize download zip + +### Documentation + +- Improve readme + +### Features + +- Aware RUST_LOG + +## [0.2.0] - 2022-05-28 + +### Documentation + +- Update demo png +- Improve readme + +### Features + +- Add logger +- Download folder as zip file + +## [0.1.0] - 2022-05-26 + +### Bug Fixes + +- Caught server error when symlink broken + +### Documentation + +- Improve readme +- Update readme + +### Features + +- Add basic auth and readonly mode +- Support delete operation +- Remove parent path + +### Styling + +- Cargo fmt +- Update index page + +### Build + +- Remove dev deps + +### Ci + +- Init ci + + diff --git a/templates/usr/share/doc/dufs/copyright b/templates/usr/share/doc/dufs/copyright new file mode 100644 index 0000000..d4a28b3 --- /dev/null +++ b/templates/usr/share/doc/dufs/copyright @@ -0,0 +1,34 @@ +ormat: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: dufs +Source: https://github.com/sigoden/dufs/releases + +Files: * +Copyright: 2022, sigoden +License: Apache-2.0 + +Files: DEBIAN/* +Copyright: 2024, wcbing +License: MIT + +License: Apache-2.0 + Debian systems provide the Apache 2.0 license in + /usr/share/common-licenses/Apache-2.0 + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE.