該篇教程主要講解Dufs的安裝和簡單使用

Dufs:

一個獨特的實用文件服務(wù)器,支持靜態(tài)服務(wù)、上傳、搜索、訪問控制、webdav...

UNRAID篇,搭建Dufs文件服務(wù)器

應(yīng)用特性:

○ 提供靜態(tài)文件服務(wù)

○ 將文件夾下載為zip文件

○ 上傳文件和文件夾(拖放)

○ 創(chuàng)建/編輯/搜索文件

○ 可恢復(fù)/部分上傳/下載

○ 訪問控制

○ 支持https

○ 支持webdav

○ 支持使用curl

主要流程目錄:

1.安裝

2.使用

2.1.簡單功能

2.2.Webdav

2.3.設(shè)置賬號

3.總結(jié)

1.安裝

創(chuàng)建一個容器

UNRAID篇,搭建Dufs文件服務(wù)器

切換”高級視圖“

UNRAID篇,搭建Dufs文件服務(wù)器

Tip:

/data -A,意思是data目錄允許所有操作

參考填寫

Dufs sigoden/dufs:latest http://[IP]:[PORT:5000] /data -AUNRAID篇,搭建Dufs文件服務(wù)器

添加其他參數(shù)

UNRAID篇,搭建Dufs文件服務(wù)器

5000

5000

UNRAID篇,搭建Dufs文件服務(wù)器

/data

/mnt/user/appdata/dufs

UNRAID篇,搭建Dufs文件服務(wù)器

2.使用

瀏覽器中輸入 http://NAS的IP:5000 就能看到界面

UNRAID篇,搭建Dufs文件服務(wù)器

Tip:

還有比較多高級功能使用沒說到,可以自行查看文檔:

https://github.com/sigoden/dufs

Dufs is a distinctive utility file server - https://github.com/sigoden/dufs ? Usage: dufs [OPTIONS] [serve-path] ? Arguments: [serve-path] Specific path to serve [default: .] ? Options: -c, --config Specify configuration file -b, --bind Specify bind address or unix socket -p, --port Specify port to listen on [default: 5000] --path-prefix Specify a path prefix --hidden Hide paths from directory listings, e.g. tmp,*.log,*.lock -a, --auth Add auth roles, e.g. user:pass@/dir1:rw,/dir2 -A, --allow-all Allow all operations --allow-upload Allow upload files/folders --allow-delete Allow delete files/folders --allow-search Allow search files/folders --allow-symlink Allow symlink to files/folders outside root directory --allow-archive Allow zip archive generation --enable-cors Enable CORS, sets `Access-Control-Allow-Origin: *` --render-index Serve index.html when requesting a directory, returns 404 if not found index.html --render-try-index Serve index.html when requesting a directory, returns directory listing if not found index.html --render-spa Serve SPA(Single Page Application) --assets Set the path to the assets directory for overriding the built-in assets --log-format Customize http log format --log-file Specify the file to save logs to, other than stdout/stderr --compress Set zip compress level [default: low] [possible values: none, low, medium, high] --completions Print shell completion script for [possible values: bash, elvish, fish, powershell, zsh] --tls-cert Path to an SSL/TLS certificate to serve with HTTPS --tls-key Path to the SSL/TLS certificate's private key -h, --help Print help -V, --version Print version

2.1.簡單功能

界面功能比較簡單,從左到右分別是:下載,上傳,創(chuàng)建文件夾,創(chuàng)建文件和搜索

UNRAID篇,搭建Dufs文件服務(wù)器

 

上傳文件會顯示進度(完成以后需要自行刷新)

UNRAID篇,搭建Dufs文件服務(wù)器

可以對文件進行:下載,移動,刪除和編輯

UNRAID篇,搭建Dufs文件服務(wù)器

圖片可以作為圖床(而且是根據(jù)文件夾目錄結(jié)構(gòu)存放)

UNRAID篇,搭建Dufs文件服務(wù)器

可以作為文件服務(wù)器下載文件

UNRAID篇,搭建Dufs文件服務(wù)器

2.2.Webdav

支持Webdav,可以直接進行掛載

UNRAID篇,搭建Dufs文件服務(wù)器

Tip:

有時候可能提示無效,可以用RaiDrive進行掛載

UNRAID篇,搭建Dufs文件服務(wù)器

掛載到電腦以后,可以直接進行操作

UNRAID篇,搭建Dufs文件服務(wù)器

2.3.設(shè)置賬號

修改”發(fā)布參數(shù)“

/data -a user:pass@/:rwUNRAID篇,搭建Dufs文件服務(wù)器

設(shè)置完成,刷新頁面就需要賬號和密碼才能訪問

UNRAID篇,搭建Dufs文件服務(wù)器

3.總結(jié)

首先要說的是UI界面太簡陋,但功能確實都很實用,作為簡單文件管理器也很方便。特別是UNRAID的圖標(biāo)鏈接問題,這個可以作為圖床來使用還是挺方便。

映射路徑的文件和網(wǎng)頁端顯示都是一樣的,不會打亂原來文件結(jié)構(gòu)

UNRAID篇,搭建Dufs文件服務(wù)器,

聲明:本站所有文章,如無特殊說明或標(biāo)注,均為本站原創(chuàng)發(fā)布。任何個人或組織,在未征得本站同意時,禁止復(fù)制、盜用、采集、發(fā)布本站內(nèi)容到任何網(wǎng)站、書籍等各類媒體平臺。如若本站內(nèi)容侵犯了原著者的合法權(quán)益,可聯(lián)系我們進行處理。