{
    "componentChunkName": "component---src-templates-issues-tsx",
    "path": "/issues/139",
    "result": {"data":{"issuesJson":{"id":"fb2c5d75-9ed6-52ee-8c33-5db96370ccc6","title":"sigoden/dufs: 一个独特的实用文件服务器，支持静态服务、上传、搜索、访问控制、webdav","number":139,"bodyHTML":"<div align=\"center\" dir=\"auto\">\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\"><img src=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\" width=\"100%\" height=\"3\" data-animated-image=\"\" data-canonical-src=\"https://cdn.jsdelivr.net/gh/eryajf/tu@main/img/image_20240420_214408.gif\" style=\"max-width: 100%; height: auto; max-height: 3px;\"></a><br><br></p>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th align=\"right\">Repos</th>\n<th align=\"left\"><a href=\"https://github.com/sigoden/dufs\">sigoden/dufs</a></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"right\"><strong>Views</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/6fc3b7e3ef47755b764c3a01c77a64983a786d2ed56b33479af4a6ea13c86413/68747470733a2f2f76696577732e77686174696c656172656e65642e746f6461792f76696577732f6769746875622f7369676f64656e2f647566732e737667\" alt=\"views\" data-canonical-src=\"https://views.whatilearened.today/views/github/sigoden/dufs.svg\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>Stars</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/f081ab8b553412269f0167251700d3e3a93ae354b4304396180348e93d3b855e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7369676f64656e2f647566733f636f6c6f723d663266303864266c6f676f3d556e64657274616c65266c6f676f436f6c6f723d656234363330\" alt=\"stars\" data-canonical-src=\"https://img.shields.io/github/stars/sigoden/dufs?color=f2f08d&amp;logo=Undertale&amp;logoColor=eb4630\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>Forks</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/9cacc6527ae9f4dc15130846dfe535f31c50daca12e47e0c52ababcf06a26b73/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f7369676f64656e2f647566733f636f6c6f723d626138366562266c6f676f3d48616e647368616b65266c6f676f436f6c6f723d656136616136\" alt=\"forks\" data-canonical-src=\"https://img.shields.io/github/forks/sigoden/dufs?color=ba86eb&amp;logo=Handshake&amp;logoColor=ea6aa6\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>License</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/0c93ca71e73bb599dbfbd81eb5bbb82f63a427dc55ced5d8a7de2d4025f1f1c5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c2d4e4f4e452d626c75653f6c6f676f3d756e6c6963656e7365\" alt=\"license\" data-canonical-src=\"https://img.shields.io/badge/L-NONE-blue?logo=unlicense\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>UpdatedAt</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/96e9fd8c84d52b61547f0b87d5dd0c3b6390d3ddc49045ce8a160b3de7ed55bb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f7369676f64656e2f647566733f646973706c61795f74696d657374616d703d636f6d6d6974746572266c6f676f3d64617461253341696d616765253246706e672533426261736536342532436956424f5277304b47676f414141414e5355684555674141414234414141416543415941414141374d4b3669414141414358424957584d41414173544141414c457745416d7077594141414648556c45515652346e4c5658375539615678776d3236646c582532466468627825324232253246516e626b7655627264554151674a4a496655444e574454546d4f76314651554661504a346b7573725630314a7431734e70637453327533626f745a746d786439744a5346536f714b71494635625944464c436f76436c656673747a4a387758524c445a4c7a6e6b634f343535376e3364332532466e655a3472454f515a74315771462532423858467234253242664f4c4565326a6f59307a776638546f795a50766a45676b4c592532426b306d6d72584f36644b696e787a476b30666a5430782532425279723055716e6359637a4d317263347451253242497270324c4758646f344e4334567657715453373277716c632532427231334f527269364b6458646e624f484c6c776c7a4a70524b6e3657342532424b36706f4f434e6e494166486a253246253242776168495a4234764b6e715a6630714a704e49716c2532467638545530634e6c3572627963337730516e54703379324c54614a374d314e617844723266526e315370504736476961323174664533345463614f617931694d55564f5146624659714957536f31573854694156616e43306576584f4542375770313448466232327a453566714c4f433545524c515769644e614e49347545636339693768634a6c644868324e57725135674464624f6c7061756d49754c62326174415144506e7a3062384e6257636d785656524a33486d7870536377777a4f4a6d4b44524765384c6c435a444c4739673754496e5631516c376462586256316533675430574b697243466f6d6b5079767758466c5a474a4f6a563625324253743634757564445a4f55354555636f782532464d455144567674364d62634e3237593341797a687633737061557242365a3971724a534f3139657a6a387032704c426b4a792532426343484a7857493567573574636652527a31645531394766476b6f7539505a4f34736d52396a4746777065783444793362766e6d4b79706f74625531335669646a71595a68726a343972764d457425324625324659714c7a396430304e6a57253246637a67796f394f35317a7336614e6c6f354644747530445a675146686c47584a30644241446f4e6864367576703657686f617967374e394c564748386d443462253246486e667455516f4e4734764c51306769784d716c5725324234714f6a744e48446733723166365969525347785279375576714c62395534716b716e78504f4e7661356c447048723125324279794b524e4b57425a793565644d554842326d3572792532422532424551772532427a6766347a6f39253246306f634e3357527a4c4277344a2532424a7950574372716d4967475974554f735744346f785a46516f50556a4770564871493425324661666b51504336665a5165654d31253242764c7549516e6a754257514444437363726d485039656f4e5041744271664f6e5875614b25324268364a45624772732532427076764d6d78654962683836336162565065597953456f39464a48704e4d464a59253242503563575a6b6667374f3174537759436553514c54593345385130392532464256504a556c78516a7368543142736343593032723955445542667643484236367063665041336c794165336e6772332532463437584467614a7a736c7937787741364e5a746c555550437541487161536a5549502532427375653842525741432532464e6651374a5a505a35397330476a3756747049537a34685125324243706658474d4b685a63764c70554b7866574d386f68766637702532464f446a4842666356463849736b383267314648796b63564645253242555a414158343761452532464d6c34504f3530506e75683025324678346e6d637957507364774468427836436d6b4c562532466746446a594b784f4a4f4674623077517949684c39527943774b33414f664947703159464542686e4d4a634c525745624b644b516f55366e63545a6b494544696341792532463831645675454d3552775066657934784f7830496b25324649324e6e466b692532425761664f6f464959466367595a43797864376543556a626334416d46363566742532466b4d686b336f25324235686337734d4a79716a4a45477659466151464972375930775077384246415925324236253242766d6b3377367a7a5275444d6d5a5652736668385274413075455453443775434254364459514e36697665553066706b594c6a453671725672744f78654e4b553954484c5a4a396b4255324a427342685635416976422532466f4b61514e4b675043427744596149665a4334616454684f71463457454e56694c4a77566f586f62664c424b56773637414f6154734c6336355461564b32317651344c613939654b6359673576627873624f627a5451394e37554b4467554f3177446a6944494942736868357a746733396e514d4c535a4248344f7a424f55444551586d323036643366634c67737762585141345068634b336e6873775531427a3877765130395248472532466f597933656a6677424e6d746f59714c4130586741414141424a52553545726b4a676767253344253344266c6162656c3d557064617465644174\" alt=\"last-commit\" data-canonical-src=\"https://img.shields.io/github/last-commit/sigoden/dufs?display_timestamp=committer&amp;logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHUlEQVR4nLVX7U9aVxwm26dlX%2Fdhbx%2B2%2FQnbkvUbrdUAQgJJIfUDNWDTTmOv1FQUFaPJ4kusrV01Jt1sNpctS2u3botZtmxd9tJSFSoqKqIF5bYDFLCovClefstzJ8wXRLDZLznkcO4557n3d3%2FneZ4rEOQZt1WqF%2B8XFr4%2BfOLEe2joY0zwf8ToyZPvjEgkLY%2Bk0mmrXO6dKinxzGk0fjT0x%2BRyr0UqncYczM1rc4tQ%2BIrp2LGXdo4NC4VvWqTS72wqlc%2Br13ORri6KdXdnbOHLlwlzJpRKn6W4%2BK6poOCNnIAfHj%2F%2BwahIZB4vKnqZf0qJpNIql%2Fv8TU0cNl5rbyc3w0QnTp3y2LTaJ7M1NaxDr2fRn1SpPG6Gia21tfE34TcaOay1iMUVOQFbFYqIWSo1W8TiAVanC0evXOEB7Wp14HFb22zE5fqLOC5ERLQWidNaNI4uEcc9i7hcJldHh2NWrQ5gDdbOlpaumIuLb2atAQDPnz0b8NbWcmxVVRJ3HmxpScwwzOJmKDRGe8LlCZDLG9g7TInV1Ql7dbXbV1e3gT0WKirCFomkPyvwXFlZGJOjV6%2BSt64uudDZOU5EUcox%2FMEQDVvt6MbcN27Y3Ayzhv3spaUrB6Z9qrJSO19ezj8p2pLBkJy%2BcCHJxWI5gW5tcfRRz1dU19GfGkou9PZO4smR9jGFwpex4Dy3bvnmKypotbU13VidjqYZhrj49rvMEt%2F%2FYqLz9d00NjW%2Fczgyo9O51zs6aNlo5FDtu0DZgQFhlGXJ0dBADoNhd6uvp6Whoayg7N9LVGH8mD4b%2FHnftUQoNG4vLQ0gixMqlW%2B4qOjtNHDg3r1f6YiRSGxRy7UvqLb9U4qkqnxPONva5lDpHr1%2ByyKRNKWBZy5edMUHB2m5ry%2B%2BEQw%2Bzgf4zo9%2F0ocN3WRzLBw4J%2BJyPWCrqmIgGYtUOsWD4oxZFQoPUjGpVHqI4%2FafkQPC6fZQeeM1%2BvLuIQnjuBWQDDCscrmHP9eoNPAtBqfOnXuaK%2Bh6JEbGrs%2BpvvMmxeIbh863abVPeYySEo9FJHpNMFJY%2BP5cWZkfg7O1tSwYCeSQLTY3E8Q09%2FBVPJUlxQjshT1BscCY02r9UDUBfvCHB66pcfPA3lyAe3ngr3%2F47XDgaJzsly7xwA6NZtlUUPCuAHqaSjUIP%2Bsue8BRWAC%2FNfQ7JZPZ59s0Gj7VtpISz4hQ%2BCpfXGMKhZcvLpUKxfWM8ohvf7p%2FODjHBfcVF8Isk82g1FHykcVFE%2BUZAAX47aE%2FMl4PO50Pnuh0%2Fx4nmcyWPsdwDhBx6CmkLV%2FgFDjYKxOJOFtb0wQyIhL9RyCwK3AOfIGp1YFEBhnMJcLRWEbKdKQoU6ncTZkIEDicAy%2F81dVuEM5RwPfey4xOx0Ik%2FI2NnFki%2BWafOoFIYFcgYZCyxd7eCUjbc4AmF65ft%2FkMhk3o%2B5hc7sMJyqjJEGvYFaQFIr7Y0wPw8BFAY%2B6%2Bvmk3w6zzRuDMmZVRsfh8RtA0uETSD7uCBT6DYQN6iveU0fpkYLjE6qrVrtOxeNKU9THLZJ9kBU2JBsBhV5AivB%2FoKaQNKgPCBwDYaIfZC4adThOqF4WENViLJwVoXobfLBKVw67AOaTsLc65TaVK21vQ4La99eKcYg5vbxsbObzTQ9N7UKDgUO1wDjiDIIBshh5ztg39nQMLSZBH4OzBOUDEQXm206d3fcLgswbXQA4PhcK3nhswU1Bz8wvQ09RHG%2FoYy3ejfwBNmtoYqLA0XgAAAABJRU5ErkJggg%3D%3D&amp;label=UpdatedAt\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>CreatedAt</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/a8666a648310e221089ab17b369c0dfd9a1210ee9262b57da1840070da1f861a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f637265617465642d61742f7369676f64656e2f647566733f6c6f676f3d64617461253341696d616765253246706e672533426261736536342532436956424f5277304b47676f414141414e5355684555674141414234414141416543415941414141374d4b3669414141414358424957584d41414173544141414c457745416d7077594141414648556c45515652346e4c5658375539615678776d3236646c582532466468627825324232253246516e626b7655627264554151674a4a496655444e574454546d4f76314651554661504a346b7573725630314a7431734e70637453327533626f745a746d786439744a5346536f714b71494635625944464c436f76436c656673747a4a387758524c445a4c7a6e6b634f343535376e3364332532466e655a3472454f515a74315771462532423858467234253242664f4c4565326a6f59307a776638546f795a50766a45676b4c592532426b306d6d72584f36644b696e787a476b30666a5430782532425279723055716e6359637a4d317263347451253242497270324c4758646f344e4334567657715453373277716c632532427231334f527269364b6458646e624f484c6c776c7a4a70524b6e3657342532424b36706f4f434e6e494166486a253246253242776168495a4234764b6e715a6630714a704e49716c2532467638545530634e6c3572627963337730516e54703379324c54614a374d314e617844723266526e315370504736476961323174664533345463614f617931694d55564f5146624659714957536f31573854694156616e43306576584f4542375770313448466232327a453566714c4f433545524c515769644e614e49347545636339693768634a6c644868324e57725135674464624f6c7061756d49754c62326174415144506e7a3062384e6257636d785656524a33486d7870536377777a4f4a6d4b44524765384c6c435a444c4739673754496e5631516c376462586256316533675430574b697243466f6d6b5079767758466c5a474a4f6a563625324253743634757564445a4f55354555636f782532464d455144567674364d62634e3237593341797a687633737061557242365a3971724a534f3139657a6a387032704c426b4a792532426343484a7857493567573574636652527a31645531394766476b6f7539505a4f34736d52396a4746777065783444793362766e6d4b79706f74625531335669646a71595a68726a343972764d457425324625324659714c7a396430304e6a57253246637a67796f394f35317a7336614e6c6f354644747530445a675146686c47584a30644241446f4e6864367576703657686f617967374e394c564748386d443462253246486e667455516f4e4734764c51306769784d716c5725324234714f6a744e48446733723166365969525347785279375576714c62395534716b716e78504f4e7661356c447048723125324279794b524e4b57425a793565644d554842326d3572792532422532424551772532427a6766347a6f39253246306f634e3357527a4c4277344a2532424a7950574372716d4967475974554f735744346f785a46516f50556a4770564871493425324661666b51504336665a5165654d31253242764c7549516e6a754257514444437363726d485039656f4e5041744271664f6e5875614b25324268364a45624772732532427076764d6d78654962683836336162565065597953456f39464a48704e4d464a59253242503563575a6b6667374f3174537759436553514c54593345385130392532464256504a556c78516a7368543142736343593032723955445542667643484236367063665041336c794165336e6772332532463437584467614a7a736c7937787741364e5a746c555550437541487161536a5549502532427375653842525741432532464e6651374a5a505a35397330476a3756747049537a34685125324243706658474d4b685a63764c70554b7866574d386f68766637702532464f446a4842666356463849736b383267314648796b63564645253242555a414158343761452532464d6c34504f3530506e75683025324678346e6d637957507364774468427836436d6b4c562532466746446a594b784f4a4f4674623077517949684c39527943774b33414f664947703159464542686e4d4a634c525745624b644b516f55366e63545a6b494544696341792532463831645675454d3552775066657934784f7830496b25324649324e6e466b692532425761664f6f464959466367595a43797864376543556a626334416d46363566742532466b4d686b336f25324235686337734d4a79716a4a45477659466151464972375930775077384246415925324236253242766d6b3377367a7a5275444d6d5a5652736668385274413075455453443775434254364459514e36697665553066706b594c6a453671725672744f78654e4b553954484c5a4a396b4255324a427342685635416976422532466f4b61514e4b675043427744596149665a4334616454684f71463457454e56694c4a77566f586f62664c424b56773637414f6154734c6336355461564b32317651344c613939654b6359673576627873624f627a5451394e37554b4467554f3177446a6944494942736868357a746733396e514d4c535a4248344f7a424f55444551586d323036643366634c67737762585141345068634b336e6873775531427a3877765130395248472532466f597933656a6677424e6d746f59714c4130586741414141424a52553545726b4a676767253344253344266c6162656c3d437265617465644174\" alt=\"create-at\" data-canonical-src=\"https://img.shields.io/github/created-at/sigoden/dufs?logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHUlEQVR4nLVX7U9aVxwm26dlX%2Fdhbx%2B2%2FQnbkvUbrdUAQgJJIfUDNWDTTmOv1FQUFaPJ4kusrV01Jt1sNpctS2u3botZtmxd9tJSFSoqKqIF5bYDFLCovClefstzJ8wXRLDZLznkcO4557n3d3%2FneZ4rEOQZt1WqF%2B8XFr4%2BfOLEe2joY0zwf8ToyZPvjEgkLY%2Bk0mmrXO6dKinxzGk0fjT0x%2BRyr0UqncYczM1rc4tQ%2BIrp2LGXdo4NC4VvWqTS72wqlc%2Br13ORri6KdXdnbOHLlwlzJpRKn6W4%2BK6poOCNnIAfHj%2F%2BwahIZB4vKnqZf0qJpNIql%2Fv8TU0cNl5rbyc3w0QnTp3y2LTaJ7M1NaxDr2fRn1SpPG6Gia21tfE34TcaOay1iMUVOQFbFYqIWSo1W8TiAVanC0evXOEB7Wp14HFb22zE5fqLOC5ERLQWidNaNI4uEcc9i7hcJldHh2NWrQ5gDdbOlpaumIuLb2atAQDPnz0b8NbWcmxVVRJ3HmxpScwwzOJmKDRGe8LlCZDLG9g7TInV1Ql7dbXbV1e3gT0WKirCFomkPyvwXFlZGJOjV6%2BSt64uudDZOU5EUcox%2FMEQDVvt6MbcN27Y3Ayzhv3spaUrB6Z9qrJSO19ezj8p2pLBkJy%2BcCHJxWI5gW5tcfRRz1dU19GfGkou9PZO4smR9jGFwpex4Dy3bvnmKypotbU13VidjqYZhrj49rvMEt%2F%2FYqLz9d00NjW%2Fczgyo9O51zs6aNlo5FDtu0DZgQFhlGXJ0dBADoNhd6uvp6Whoayg7N9LVGH8mD4b%2FHnftUQoNG4vLQ0gixMqlW%2B4qOjtNHDg3r1f6YiRSGxRy7UvqLb9U4qkqnxPONva5lDpHr1%2ByyKRNKWBZy5edMUHB2m5ry%2B%2BEQw%2Bzgf4zo9%2F0ocN3WRzLBw4J%2BJyPWCrqmIgGYtUOsWD4oxZFQoPUjGpVHqI4%2FafkQPC6fZQeeM1%2BvLuIQnjuBWQDDCscrmHP9eoNPAtBqfOnXuaK%2Bh6JEbGrs%2BpvvMmxeIbh863abVPeYySEo9FJHpNMFJY%2BP5cWZkfg7O1tSwYCeSQLTY3E8Q09%2FBVPJUlxQjshT1BscCY02r9UDUBfvCHB66pcfPA3lyAe3ngr3%2F47XDgaJzsly7xwA6NZtlUUPCuAHqaSjUIP%2Bsue8BRWAC%2FNfQ7JZPZ59s0Gj7VtpISz4hQ%2BCpfXGMKhZcvLpUKxfWM8ohvf7p%2FODjHBfcVF8Isk82g1FHykcVFE%2BUZAAX47aE%2FMl4PO50Pnuh0%2Fx4nmcyWPsdwDhBx6CmkLV%2FgFDjYKxOJOFtb0wQyIhL9RyCwK3AOfIGp1YFEBhnMJcLRWEbKdKQoU6ncTZkIEDicAy%2F81dVuEM5RwPfey4xOx0Ik%2FI2NnFki%2BWafOoFIYFcgYZCyxd7eCUjbc4AmF65ft%2FkMhk3o%2B5hc7sMJyqjJEGvYFaQFIr7Y0wPw8BFAY%2B6%2Bvmk3w6zzRuDMmZVRsfh8RtA0uETSD7uCBT6DYQN6iveU0fpkYLjE6qrVrtOxeNKU9THLZJ9kBU2JBsBhV5AivB%2FoKaQNKgPCBwDYaIfZC4adThOqF4WENViLJwVoXobfLBKVw67AOaTsLc65TaVK21vQ4La99eKcYg5vbxsbObzTQ9N7UKDgUO1wDjiDIIBshh5ztg39nQMLSZBH4OzBOUDEQXm206d3fcLgswbXQA4PhcK3nhswU1Bz8wvQ09RHG%2FoYy3ejfwBNmtoYqLA0XgAAAABJRU5ErkJggg%3D%3D&amp;label=CreatedAt\" style=\"max-width: 100%;\"></a></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<a href=\"https://github.com/opsre/awesome-ops\">\n</a><p dir=\"auto\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/b964a36ea4078c39f603d46a29436371c7541a2f26e0228d7b21b9d9805b43d3/68747470733a2f2f736f6369616c6966792e6769742e63692f6f707372652f617765736f6d652d6f70732f696d6167653f6465736372697074696f6e3d3126666f6e743d42697474657226666f726b733d31266973737565733d31266c616e67756167653d31266c6f676f3d6874747073253341253246253246617661746172732e67697468756275736572636f6e74656e742e636f6d25324675253246313838353638303230266e616d653d31266f776e65723d31267061747465726e3d436972637569742b426f6172642670756c6c733d31267374617267617a6572733d31267468656d653d4c69676874\" alt=\"\" data-canonical-src=\"https://socialify.git.ci/opsre/awesome-ops/image?description=1&amp;font=Bitter&amp;forks=1&amp;issues=1&amp;language=1&amp;logo=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F188568020&amp;name=1&amp;owner=1&amp;pattern=Circuit+Board&amp;pulls=1&amp;stargazers=1&amp;theme=Light\" style=\"max-width: 100%;\"></a></p>\n<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\"><img src=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\" width=\"100%\" height=\"3\" data-animated-image=\"\" data-canonical-src=\"https://cdn.jsdelivr.net/gh/eryajf/tu@main/img/image_20240420_214408.gif\" style=\"max-width: 100%; height: auto; max-height: 3px;\"></a>\n</div>\n<h1 dir=\"auto\">Dufs</h1>\n<p dir=\"auto\"><a href=\"https://github.com/sigoden/dufs/actions/workflows/ci.yaml\"><img src=\"https://github.com/sigoden/dufs/actions/workflows/ci.yaml/badge.svg\" alt=\"CI\" style=\"max-width: 100%;\"></a><br>\n<a href=\"https://crates.io/crates/dufs\" rel=\"nofollow\"><img src=\"https://camo.githubusercontent.com/509aefd7d394c7c1a7e578811931afde7ae1240b99b837443a0397a06af4baf8/68747470733a2f2f696d672e736869656c64732e696f2f6372617465732f762f647566732e737667\" alt=\"Crates\" data-canonical-src=\"https://img.shields.io/crates/v/dufs.svg\" style=\"max-width: 100%;\"></a><br>\n<a href=\"https://hub.docker.com/r/sigoden/dufs\" rel=\"nofollow\"><img src=\"https://camo.githubusercontent.com/826c4de3808293c74a98603deadab080a908b1ae1345ed8504c0d6095641bb22/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f70756c6c732f7369676f64656e2f64756673\" alt=\"Docker Pulls\" data-canonical-src=\"https://img.shields.io/docker/pulls/sigoden/dufs\" style=\"max-width: 100%;\"></a></p>\n<p dir=\"auto\">Dufs is a distinctive utility file server that supports static serving, uploading, searching, accessing control, webdav...</p>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://user-images.githubusercontent.com/4012553/220513063-ff0f186b-ac54-4682-9af4-47a9781dee0d.png\"><img src=\"https://user-images.githubusercontent.com/4012553/220513063-ff0f186b-ac54-4682-9af4-47a9781dee0d.png\" alt=\"demo\" style=\"max-width: 100%;\"></a></p>\n<h2 dir=\"auto\">Features</h2>\n<ul dir=\"auto\">\n<li>Serve static files</li>\n<li>Download folder as zip file</li>\n<li>Upload files and folders (Drag &amp; Drop)</li>\n<li>Create/Edit/Search files</li>\n<li>Resumable/partial uploads/downloads</li>\n<li>Access control</li>\n<li>Support https</li>\n<li>Support webdav</li>\n<li>Easy to use with curl</li>\n</ul>\n<h2 dir=\"auto\">Install</h2>\n<h3 dir=\"auto\">With cargo</h3>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"cargo install dufs\"><pre class=\"notranslate\"><code class=\"notranslate\">cargo install dufs\n</code></pre></div>\n<h3 dir=\"auto\">With docker</h3>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"docker run -v `pwd`:/data -p 5000:5000 --rm sigoden/dufs /data -A\"><pre class=\"notranslate\"><code class=\"notranslate\">docker run -v `pwd`:/data -p 5000:5000 --rm sigoden/dufs /data -A\n</code></pre></div>\n<h3 dir=\"auto\">With <a href=\"https://brew.sh\" rel=\"nofollow\">Homebrew</a></h3>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"brew install dufs\"><pre class=\"notranslate\"><code class=\"notranslate\">brew install dufs\n</code></pre></div>\n<h3 dir=\"auto\">Binaries on macOS, Linux, Windows</h3>\n<p dir=\"auto\">Download from <a href=\"https://github.com/sigoden/dufs/releases\">Github Releases</a>, unzip and add dufs to your $PATH.</p>\n<h2 dir=\"auto\">CLI</h2>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"Dufs is a distinctive utility file server - https://github.com/sigoden/dufs\n\nUsage: dufs [OPTIONS] [serve-path]\n\nArguments:\n  [serve-path]  Specific path to serve [default: .]\n\nOptions:\n  -c, --config &lt;file&gt;        Specify configuration file\n  -b, --bind &lt;addrs&gt;         Specify bind address or unix socket\n  -p, --port &lt;port&gt;          Specify port to listen on [default: 5000]\n      --path-prefix &lt;path&gt;   Specify a path prefix\n      --hidden &lt;value&gt;       Hide paths from directory listings, e.g. tmp,*.log,*.lock\n  -a, --auth &lt;rules&gt;         Add auth roles, e.g. user:pass@/dir1:rw,/dir2\n  -A, --allow-all            Allow all operations\n      --allow-upload         Allow upload files/folders\n      --allow-delete         Allow delete files/folders\n      --allow-search         Allow search files/folders\n      --allow-symlink        Allow symlink to files/folders outside root directory\n      --allow-archive        Allow download folders as archive file\n      --enable-cors          Enable CORS, sets `Access-Control-Allow-Origin: *`\n      --render-index         Serve index.html when requesting a directory, returns 404 if not found index.html\n      --render-try-index     Serve index.html when requesting a directory, returns directory listing if not found index.html\n      --render-spa           Serve SPA(Single Page Application)\n      --assets &lt;path&gt;        Set the path to the assets directory for overriding the built-in assets\n      --log-format &lt;format&gt;  Customize http log format\n      --log-file &lt;file&gt;      Specify the file to save logs to, other than stdout/stderr\n      --compress &lt;level&gt;     Set zip compress level [default: low] [possible values: none, low, medium, high]\n      --completions &lt;shell&gt;  Print shell completion script for &lt;shell&gt; [possible values: bash, elvish, fish, powershell, zsh]\n      --tls-cert &lt;path&gt;      Path to an SSL/TLS certificate to serve with HTTPS\n      --tls-key &lt;path&gt;       Path to the SSL/TLS certificate's private key\n  -h, --help                 Print help\n  -V, --version              Print version\"><pre class=\"notranslate\"><code class=\"notranslate\">Dufs is a distinctive utility file server - https://github.com/sigoden/dufs\n\nUsage: dufs [OPTIONS] [serve-path]\n\nArguments:\n  [serve-path]  Specific path to serve [default: .]\n\nOptions:\n  -c, --config &lt;file&gt;        Specify configuration file\n  -b, --bind &lt;addrs&gt;         Specify bind address or unix socket\n  -p, --port &lt;port&gt;          Specify port to listen on [default: 5000]\n      --path-prefix &lt;path&gt;   Specify a path prefix\n      --hidden &lt;value&gt;       Hide paths from directory listings, e.g. tmp,*.log,*.lock\n  -a, --auth &lt;rules&gt;         Add auth roles, e.g. user:pass@/dir1:rw,/dir2\n  -A, --allow-all            Allow all operations\n      --allow-upload         Allow upload files/folders\n      --allow-delete         Allow delete files/folders\n      --allow-search         Allow search files/folders\n      --allow-symlink        Allow symlink to files/folders outside root directory\n      --allow-archive        Allow download folders as archive file\n      --enable-cors          Enable CORS, sets `Access-Control-Allow-Origin: *`\n      --render-index         Serve index.html when requesting a directory, returns 404 if not found index.html\n      --render-try-index     Serve index.html when requesting a directory, returns directory listing if not found index.html\n      --render-spa           Serve SPA(Single Page Application)\n      --assets &lt;path&gt;        Set the path to the assets directory for overriding the built-in assets\n      --log-format &lt;format&gt;  Customize http log format\n      --log-file &lt;file&gt;      Specify the file to save logs to, other than stdout/stderr\n      --compress &lt;level&gt;     Set zip compress level [default: low] [possible values: none, low, medium, high]\n      --completions &lt;shell&gt;  Print shell completion script for &lt;shell&gt; [possible values: bash, elvish, fish, powershell, zsh]\n      --tls-cert &lt;path&gt;      Path to an SSL/TLS certificate to serve with HTTPS\n      --tls-key &lt;path&gt;       Path to the SSL/TLS certificate's private key\n  -h, --help                 Print help\n  -V, --version              Print version\n</code></pre></div>\n<h2 dir=\"auto\">Examples</h2>\n<p dir=\"auto\">Serve current working directory in read-only mode</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs\n</code></pre></div>\n<p dir=\"auto\">Allow all operations like upload/delete/search/create/edit...</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs -A\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs -A\n</code></pre></div>\n<p dir=\"auto\">Only allow upload operation</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs --allow-upload\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs --allow-upload\n</code></pre></div>\n<p dir=\"auto\">Serve a specific directory</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs Downloads\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs Downloads\n</code></pre></div>\n<p dir=\"auto\">Serve a single file</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs linux-distro.iso\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs linux-distro.iso\n</code></pre></div>\n<p dir=\"auto\">Serve a single-page application like react/vue</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs --render-spa\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs --render-spa\n</code></pre></div>\n<p dir=\"auto\">Serve a static website with index.html</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs --render-index\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs --render-index\n</code></pre></div>\n<p dir=\"auto\">Require username/password</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs -a admin:123@/:rw\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs -a admin:123@/:rw\n</code></pre></div>\n<p dir=\"auto\">Listen on specific host:ip</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs -b 127.0.0.1 -p 80\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs -b 127.0.0.1 -p 80\n</code></pre></div>\n<p dir=\"auto\">Listen on unix socket</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs -b /tmp/dufs.socket\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs -b /tmp/dufs.socket\n</code></pre></div>\n<p dir=\"auto\">Use https</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs --tls-cert my.crt --tls-key my.key\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs --tls-cert my.crt --tls-key my.key\n</code></pre></div>\n<h2 dir=\"auto\">API</h2>\n<p dir=\"auto\">Upload a file</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"curl -T path-to-file http://127.0.0.1:5000/new-path/path-to-file\"><pre class=\"notranslate\">curl -T path-to-file http://127.0.0.1:5000/new-path/path-to-file</pre></div>\n<p dir=\"auto\">Download a file</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"curl http://127.0.0.1:5000/path-to-file           # download the file\ncurl http://127.0.0.1:5000/path-to-file?hash      # retrieve the sha256 hash of the file\"><pre class=\"notranslate\">curl http://127.0.0.1:5000/path-to-file           <span class=\"pl-c\"><span class=\"pl-c\">#</span> download the file</span>\ncurl http://127.0.0.1:5000/path-to-file<span class=\"pl-k\">?</span>hash      <span class=\"pl-c\"><span class=\"pl-c\">#</span> retrieve the sha256 hash of the file</span></pre></div>\n<p dir=\"auto\">Download a folder as zip file</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"curl -o path-to-folder.zip http://127.0.0.1:5000/path-to-folder?zip\"><pre class=\"notranslate\">curl -o path-to-folder.zip http://127.0.0.1:5000/path-to-folder<span class=\"pl-k\">?</span>zip</pre></div>\n<p dir=\"auto\">Delete a file/folder</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"curl -X DELETE http://127.0.0.1:5000/path-to-file-or-folder\"><pre class=\"notranslate\">curl -X DELETE http://127.0.0.1:5000/path-to-file-or-folder</pre></div>\n<p dir=\"auto\">Create a directory</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"curl -X MKCOL http://127.0.0.1:5000/path-to-folder\"><pre class=\"notranslate\">curl -X MKCOL http://127.0.0.1:5000/path-to-folder</pre></div>\n<p dir=\"auto\">Move the file/folder to the new path</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"curl -X MOVE http://127.0.0.1:5000/path -H &quot;Destination: http://127.0.0.1:5000/new-path&quot;\"><pre class=\"notranslate\">curl -X MOVE http://127.0.0.1:5000/path -H <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>Destination: http://127.0.0.1:5000/new-path<span class=\"pl-pds\">\"</span></span></pre></div>\n<p dir=\"auto\">List/search directory contents</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"curl http://127.0.0.1:5000?q=Dockerfile           # search for files, similar to `find -name Dockerfile`\ncurl http://127.0.0.1:5000?simple                 # output names only, similar to `ls -1`\ncurl http://127.0.0.1:5000?json                   # output paths in json format\"><pre class=\"notranslate\">curl http://127.0.0.1:5000<span class=\"pl-k\">?</span>q=Dockerfile           <span class=\"pl-c\"><span class=\"pl-c\">#</span> search for files, similar to `find -name Dockerfile`</span>\ncurl http://127.0.0.1:5000<span class=\"pl-k\">?</span>simple                 <span class=\"pl-c\"><span class=\"pl-c\">#</span> output names only, similar to `ls -1`</span>\ncurl http://127.0.0.1:5000<span class=\"pl-k\">?</span>json                   <span class=\"pl-c\"><span class=\"pl-c\">#</span> output paths in json format</span></pre></div>\n<p dir=\"auto\">With authorization (Both basic or digest auth works)</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"curl http://127.0.0.1:5000/file --user user:pass                 # basic auth\ncurl http://127.0.0.1:5000/file --user user:pass --digest        # digest auth\"><pre class=\"notranslate\">curl http://127.0.0.1:5000/file --user user:pass                 <span class=\"pl-c\"><span class=\"pl-c\">#</span> basic auth</span>\ncurl http://127.0.0.1:5000/file --user user:pass --digest        <span class=\"pl-c\"><span class=\"pl-c\">#</span> digest auth</span></pre></div>\n<p dir=\"auto\">Resumable downloads</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"curl -C- -o file http://127.0.0.1:5000/file\"><pre class=\"notranslate\">curl -C- -o file http://127.0.0.1:5000/file</pre></div>\n<p dir=\"auto\">Resumable uploads</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"upload_offset=$(curl -I -s http://127.0.0.1:5000/file | tr -d '\\r' | sed -n 's/content-length: //p')\ndd skip=$upload_offset if=file status=none ibs=1 | \\\n  curl -X PATCH -H &quot;X-Update-Range: append&quot; --data-binary @- http://127.0.0.1:5000/file\"><pre class=\"notranslate\">upload_offset=<span class=\"pl-s\"><span class=\"pl-pds\">$(</span>curl -I -s http://127.0.0.1:5000/file <span class=\"pl-k\">|</span> tr -d <span class=\"pl-s\"><span class=\"pl-pds\">'</span>\\r<span class=\"pl-pds\">'</span></span> <span class=\"pl-k\">|</span> sed -n <span class=\"pl-s\"><span class=\"pl-pds\">'</span>s/content-length: //p<span class=\"pl-pds\">'</span></span><span class=\"pl-pds\">)</span></span>\ndd skip=<span class=\"pl-smi\">$upload_offset</span> if=file status=none ibs=1 <span class=\"pl-k\">|</span> \\\n  curl -X PATCH -H <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>X-Update-Range: append<span class=\"pl-pds\">\"</span></span> --data-binary @- http://127.0.0.1:5000/file</pre></div>\n<p dir=\"auto\">Health checks</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"curl http://127.0.0.1:5000/__dufs__/health\"><pre class=\"notranslate\">curl http://127.0.0.1:5000/__dufs__/health</pre></div>\n<details>\n<summary><h2 dir=\"auto\">Advanced Topics</h2></summary>\n<h3 dir=\"auto\">Access Control</h3>\n<p dir=\"auto\">Dufs supports account based access control. You can control who can do what on which path with <code class=\"notranslate\">--auth</code>/<code class=\"notranslate\">-a</code>.</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs -a admin:admin@/:rw -a guest:guest@/\ndufs -a user:pass@/:rw,/dir1 -a @/\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs -a admin:admin@/:rw -a guest:guest@/\ndufs -a user:pass@/:rw,/dir1 -a @/\n</code></pre></div>\n<ol dir=\"auto\">\n<li>Use <code class=\"notranslate\">@</code> to separate the account and paths. No account means anonymous user.</li>\n<li>Use <code class=\"notranslate\">:</code> to separate the username and password of the account.</li>\n<li>Use <code class=\"notranslate\">,</code> to separate paths.</li>\n<li>Use path suffix <code class=\"notranslate\">:rw</code>/<code class=\"notranslate\">:ro</code> set permissions: <code class=\"notranslate\">read-write</code>/<code class=\"notranslate\">read-only</code>. <code class=\"notranslate\">:ro</code> can be omitted.</li>\n</ol>\n<ul dir=\"auto\">\n<li><code class=\"notranslate\">-a admin:admin@/:rw</code>: <code class=\"notranslate\">admin</code> has complete permissions for all paths.</li>\n<li><code class=\"notranslate\">-a guest:guest@/</code>: <code class=\"notranslate\">guest</code> has read-only permissions for all paths.</li>\n<li><code class=\"notranslate\">-a user:pass@/:rw,/dir1</code>: <code class=\"notranslate\">user</code> has read-write permissions for <code class=\"notranslate\">/*</code>, has read-only permissions for <code class=\"notranslate\">/dir1/*</code>.</li>\n<li><code class=\"notranslate\">-a @/</code>: All paths is publicly accessible, everyone can view/download it.</li>\n</ul>\n<p dir=\"auto\"><strong>Auth permissions are restricted by dufs global permissions.</strong> If dufs does not enable upload permissions via <code class=\"notranslate\">--allow-upload</code>, then the account will not have upload permissions even if it is granted <code class=\"notranslate\">read-write</code>(<code class=\"notranslate\">:rw</code>) permissions.</p>\n<h4 dir=\"auto\">Hashed Password</h4>\n<p dir=\"auto\">DUFS supports the use of sha-512 hashed password.</p>\n<p dir=\"auto\">Create hashed password:</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"$ openssl passwd -6 123456 # or `mkpasswd -m sha-512 123456`\n$6$tWMB51u6Kb2ui3wd$5gVHP92V9kZcMwQeKTjyTRgySsYJu471Jb1I6iHQ8iZ6s07GgCIO69KcPBRuwPE5tDq05xMAzye0NxVKuJdYs/\"><pre class=\"notranslate\">$ openssl passwd -6 123456 <span class=\"pl-c\"><span class=\"pl-c\">#</span> or `mkpasswd -m sha-512 123456`</span>\n<span class=\"pl-smi\">$6</span><span class=\"pl-smi\">$tWMB51u6Kb2ui3wd</span><span class=\"pl-smi\">$5</span>gVHP92V9kZcMwQeKTjyTRgySsYJu471Jb1I6iHQ8iZ6s07GgCIO69KcPBRuwPE5tDq05xMAzye0NxVKuJdYs/</pre></div>\n<p dir=\"auto\">Use hashed password:</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"dufs -a 'admin:$6$tWMB51u6Kb2ui3wd$5gVHP92V9kZcMwQeKTjyTRgySsYJu471Jb1I6iHQ8iZ6s07GgCIO69KcPBRuwPE5tDq05xMAzye0NxVKuJdYs/@/:rw'\"><pre class=\"notranslate\">dufs -a <span class=\"pl-s\"><span class=\"pl-pds\">'</span>admin:$6$tWMB51u6Kb2ui3wd$5gVHP92V9kZcMwQeKTjyTRgySsYJu471Jb1I6iHQ8iZ6s07GgCIO69KcPBRuwPE5tDq05xMAzye0NxVKuJdYs/@/:rw<span class=\"pl-pds\">'</span></span></pre></div>\n<blockquote>\n<p dir=\"auto\">The hashed password contains <code class=\"notranslate\">$6</code>, which can expand to a variable in some shells, so you have to use <strong>single quotes</strong> to wrap it.</p>\n</blockquote>\n<p dir=\"auto\">Two important things for hashed passwords:</p>\n<ol dir=\"auto\">\n<li>Dufs only supports sha-512 hashed passwords, so ensure that the password string always starts with <code class=\"notranslate\">$6$</code>.</li>\n<li>Digest authentication does not function properly with hashed passwords.</li>\n</ol>\n<h3 dir=\"auto\">Hide Paths</h3>\n<p dir=\"auto\">Dufs supports hiding paths from directory listings via option <code class=\"notranslate\">--hidden &lt;glob&gt;,...</code>.</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs --hidden .git,.DS_Store,tmp\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs --hidden .git,.DS_Store,tmp\n</code></pre></div>\n<blockquote>\n<p dir=\"auto\">The glob used in --hidden only matches file and directory names, not paths. So <code class=\"notranslate\">--hidden dir1/file</code> is invalid.</p>\n</blockquote>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"dufs --hidden '.*'                          # hidden dotfiles\ndufs --hidden '*/'                          # hidden all folders\ndufs --hidden '*.log,*.lock'                # hidden by exts\ndufs --hidden '*.log' --hidden '*.lock'\"><pre class=\"notranslate\">dufs --hidden <span class=\"pl-s\"><span class=\"pl-pds\">'</span>.*<span class=\"pl-pds\">'</span></span>                          <span class=\"pl-c\"><span class=\"pl-c\">#</span> hidden dotfiles</span>\ndufs --hidden <span class=\"pl-s\"><span class=\"pl-pds\">'</span>*/<span class=\"pl-pds\">'</span></span>                          <span class=\"pl-c\"><span class=\"pl-c\">#</span> hidden all folders</span>\ndufs --hidden <span class=\"pl-s\"><span class=\"pl-pds\">'</span>*.log,*.lock<span class=\"pl-pds\">'</span></span>                <span class=\"pl-c\"><span class=\"pl-c\">#</span> hidden by exts</span>\ndufs --hidden <span class=\"pl-s\"><span class=\"pl-pds\">'</span>*.log<span class=\"pl-pds\">'</span></span> --hidden <span class=\"pl-s\"><span class=\"pl-pds\">'</span>*.lock<span class=\"pl-pds\">'</span></span></pre></div>\n<h3 dir=\"auto\">Log Format</h3>\n<p dir=\"auto\">Dufs supports customize http log format with option <code class=\"notranslate\">--log-format</code>.</p>\n<p dir=\"auto\">The log format can use following variables.</p>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th>variable</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>$remote_addr</td>\n<td>client address</td>\n</tr>\n<tr>\n<td>$remote_user</td>\n<td>user name supplied with authentication</td>\n</tr>\n<tr>\n<td>$request</td>\n<td>full original request line</td>\n</tr>\n<tr>\n<td>$status</td>\n<td>response status</td>\n</tr>\n<tr>\n<td>$http_</td>\n<td>arbitrary request header field. examples: $http_user_agent, $http_referer</td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<p dir=\"auto\">The default log format is <code class=\"notranslate\">'$remote_addr \"$request\" $status'</code>.</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"2022-08-06T06:59:31+08:00 INFO - 127.0.0.1 &quot;GET /&quot; 200\"><pre class=\"notranslate\"><code class=\"notranslate\">2022-08-06T06:59:31+08:00 INFO - 127.0.0.1 \"GET /\" 200\n</code></pre></div>\n<p dir=\"auto\">Disable http log</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs --log-format=''\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs --log-format=''\n</code></pre></div>\n<p dir=\"auto\">Log user-agent</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs --log-format '$remote_addr &quot;$request&quot; $status $http_user_agent'\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs --log-format '$remote_addr \"$request\" $status $http_user_agent'\n</code></pre></div>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"2022-08-06T06:53:55+08:00 INFO - 127.0.0.1 &quot;GET /&quot; 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36\"><pre class=\"notranslate\"><code class=\"notranslate\">2022-08-06T06:53:55+08:00 INFO - 127.0.0.1 \"GET /\" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36\n</code></pre></div>\n<p dir=\"auto\">Log remote-user</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs --log-format '$remote_addr $remote_user &quot;$request&quot; $status' -a /@admin:admin -a /folder1@user1:pass1\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs --log-format '$remote_addr $remote_user \"$request\" $status' -a /@admin:admin -a /folder1@user1:pass1\n</code></pre></div>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"2022-08-06T07:04:37+08:00 INFO - 127.0.0.1 admin &quot;GET /&quot; 200\"><pre class=\"notranslate\"><code class=\"notranslate\">2022-08-06T07:04:37+08:00 INFO - 127.0.0.1 admin \"GET /\" 200\n</code></pre></div>\n<h2 dir=\"auto\">Environment variables</h2>\n<p dir=\"auto\">All options can be set using environment variables prefixed with <code class=\"notranslate\">DUFS_</code>.</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"[serve-path]                DUFS_SERVE_PATH=&quot;.&quot;\n    --config &lt;file&gt;         DUFS_CONFIG=config.yaml\n-b, --bind &lt;addrs&gt;          DUFS_BIND=0.0.0.0\n-p, --port &lt;port&gt;           DUFS_PORT=5000\n    --path-prefix &lt;path&gt;    DUFS_PATH_PREFIX=/dufs\n    --hidden &lt;value&gt;        DUFS_HIDDEN=tmp,*.log,*.lock\n-a, --auth &lt;rules&gt;          DUFS_AUTH=&quot;admin:admin@/:rw|@/&quot; \n-A, --allow-all             DUFS_ALLOW_ALL=true\n    --allow-upload          DUFS_ALLOW_UPLOAD=true\n    --allow-delete          DUFS_ALLOW_DELETE=true\n    --allow-search          DUFS_ALLOW_SEARCH=true\n    --allow-symlink         DUFS_ALLOW_SYMLINK=true\n    --allow-archive         DUFS_ALLOW_ARCHIVE=true\n    --enable-cors           DUFS_ENABLE_CORS=true\n    --render-index          DUFS_RENDER_INDEX=true\n    --render-try-index      DUFS_RENDER_TRY_INDEX=true\n    --render-spa            DUFS_RENDER_SPA=true\n    --assets &lt;path&gt;         DUFS_ASSETS=./assets\n    --log-format &lt;format&gt;   DUFS_LOG_FORMAT=&quot;&quot;\n    --log-file &lt;file&gt;       DUFS_LOG_FILE=./dufs.log\n    --compress &lt;compress&gt;   DUFS_COMPRESS=low\n    --tls-cert &lt;path&gt;       DUFS_TLS_CERT=cert.pem\n    --tls-key &lt;path&gt;        DUFS_TLS_KEY=key.pem\"><pre class=\"notranslate\"><code class=\"notranslate\">[serve-path]                DUFS_SERVE_PATH=\".\"\n    --config &lt;file&gt;         DUFS_CONFIG=config.yaml\n-b, --bind &lt;addrs&gt;          DUFS_BIND=0.0.0.0\n-p, --port &lt;port&gt;           DUFS_PORT=5000\n    --path-prefix &lt;path&gt;    DUFS_PATH_PREFIX=/dufs\n    --hidden &lt;value&gt;        DUFS_HIDDEN=tmp,*.log,*.lock\n-a, --auth &lt;rules&gt;          DUFS_AUTH=\"admin:admin@/:rw|@/\" \n-A, --allow-all             DUFS_ALLOW_ALL=true\n    --allow-upload          DUFS_ALLOW_UPLOAD=true\n    --allow-delete          DUFS_ALLOW_DELETE=true\n    --allow-search          DUFS_ALLOW_SEARCH=true\n    --allow-symlink         DUFS_ALLOW_SYMLINK=true\n    --allow-archive         DUFS_ALLOW_ARCHIVE=true\n    --enable-cors           DUFS_ENABLE_CORS=true\n    --render-index          DUFS_RENDER_INDEX=true\n    --render-try-index      DUFS_RENDER_TRY_INDEX=true\n    --render-spa            DUFS_RENDER_SPA=true\n    --assets &lt;path&gt;         DUFS_ASSETS=./assets\n    --log-format &lt;format&gt;   DUFS_LOG_FORMAT=\"\"\n    --log-file &lt;file&gt;       DUFS_LOG_FILE=./dufs.log\n    --compress &lt;compress&gt;   DUFS_COMPRESS=low\n    --tls-cert &lt;path&gt;       DUFS_TLS_CERT=cert.pem\n    --tls-key &lt;path&gt;        DUFS_TLS_KEY=key.pem\n</code></pre></div>\n<h2 dir=\"auto\">Configuration File</h2>\n<p dir=\"auto\">You can specify and use the configuration file by selecting the option <code class=\"notranslate\">--config &lt;path-to-config.yaml&gt;</code>.</p>\n<p dir=\"auto\">The following are the configuration items:</p>\n<div class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"serve-path: '.'\nbind: 0.0.0.0\nport: 5000\npath-prefix: /dufs\nhidden:\n  - tmp\n  - '*.log'\n  - '*.lock'\nauth:\n  - admin:admin@/:rw\n  - user:pass@/src:rw,/share\n  - '@/'  # According to the YAML spec, quoting is required.\nallow-all: false\nallow-upload: true\nallow-delete: true\nallow-search: true\nallow-symlink: true\nallow-archive: true\nenable-cors: true\nrender-index: true\nrender-try-index: true\nrender-spa: true\nassets: ./assets/\nlog-format: '$remote_addr &quot;$request&quot; $status $http_user_agent'\nlog-file: ./dufs.log\ncompress: low\ntls-cert: tests/data/cert.pem\ntls-key: tests/data/key_pkcs1.pem\"><pre class=\"notranslate\"><span class=\"pl-ent\">serve-path</span>: <span class=\"pl-s\"><span class=\"pl-pds\">'</span>.<span class=\"pl-pds\">'</span></span>\n<span class=\"pl-ent\">bind</span>: <span class=\"pl-s\">0.0.0.0</span>\n<span class=\"pl-ent\">port</span>: <span class=\"pl-c1\">5000</span>\n<span class=\"pl-ent\">path-prefix</span>: <span class=\"pl-s\">/dufs</span>\n<span class=\"pl-ent\">hidden</span>:\n  - <span class=\"pl-s\">tmp</span>\n  - <span class=\"pl-s\"><span class=\"pl-pds\">'</span>*.log<span class=\"pl-pds\">'</span></span>\n  - <span class=\"pl-s\"><span class=\"pl-pds\">'</span>*.lock<span class=\"pl-pds\">'</span></span>\n<span class=\"pl-ent\">auth</span>:\n  - <span class=\"pl-s\">admin:admin@/:rw</span>\n  - <span class=\"pl-s\">user:pass@/src:rw,/share</span>\n  - <span class=\"pl-s\"><span class=\"pl-pds\">'</span>@/<span class=\"pl-pds\">'</span></span>  <span class=\"pl-c\"><span class=\"pl-c\">#</span> According to the YAML spec, quoting is required.</span>\n<span class=\"pl-ent\">allow-all</span>: <span class=\"pl-c1\">false</span>\n<span class=\"pl-ent\">allow-upload</span>: <span class=\"pl-c1\">true</span>\n<span class=\"pl-ent\">allow-delete</span>: <span class=\"pl-c1\">true</span>\n<span class=\"pl-ent\">allow-search</span>: <span class=\"pl-c1\">true</span>\n<span class=\"pl-ent\">allow-symlink</span>: <span class=\"pl-c1\">true</span>\n<span class=\"pl-ent\">allow-archive</span>: <span class=\"pl-c1\">true</span>\n<span class=\"pl-ent\">enable-cors</span>: <span class=\"pl-c1\">true</span>\n<span class=\"pl-ent\">render-index</span>: <span class=\"pl-c1\">true</span>\n<span class=\"pl-ent\">render-try-index</span>: <span class=\"pl-c1\">true</span>\n<span class=\"pl-ent\">render-spa</span>: <span class=\"pl-c1\">true</span>\n<span class=\"pl-ent\">assets</span>: <span class=\"pl-s\">./assets/</span>\n<span class=\"pl-ent\">log-format</span>: <span class=\"pl-s\"><span class=\"pl-pds\">'</span>$remote_addr \"$request\" $status $http_user_agent<span class=\"pl-pds\">'</span></span>\n<span class=\"pl-ent\">log-file</span>: <span class=\"pl-s\">./dufs.log</span>\n<span class=\"pl-ent\">compress</span>: <span class=\"pl-s\">low</span>\n<span class=\"pl-ent\">tls-cert</span>: <span class=\"pl-s\">tests/data/cert.pem</span>\n<span class=\"pl-ent\">tls-key</span>: <span class=\"pl-s\">tests/data/key_pkcs1.pem</span></pre></div>\n<h3 dir=\"auto\">Customize UI</h3>\n<p dir=\"auto\">Dufs allows users to customize the UI with your own assets.</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"dufs --assets my-assets-dir/\"><pre class=\"notranslate\"><code class=\"notranslate\">dufs --assets my-assets-dir/\n</code></pre></div>\n<blockquote>\n<p dir=\"auto\">If you only need to make slight adjustments to the current UI, you copy dufs's <a href=\"https://github.com/sigoden/dufs/tree/main/assets\">assets</a> directory and modify it accordingly. The current UI doesn't use any frameworks, just plain HTML/JS/CSS. As long as you have some basic knowledge of web development, it shouldn't be difficult to modify.</p>\n</blockquote>\n<p dir=\"auto\">Your assets folder must contains a <code class=\"notranslate\">index.html</code> file.</p>\n<p dir=\"auto\"><code class=\"notranslate\">index.html</code> can use the following placeholder variables to retrieve internal data.</p>\n<ul dir=\"auto\">\n<li><code class=\"notranslate\">__INDEX_DATA__</code>: directory listing data</li>\n<li><code class=\"notranslate\">__ASSETS_PREFIX__</code>: assets url prefix</li>\n</ul>\n</details>\n<h2 dir=\"auto\">License</h2>\n<p dir=\"auto\">Copyright (c) 2022-2024 dufs-developers.</p>\n<p dir=\"auto\">dufs is made available under the terms of either the MIT License or the Apache License 2.0, at your option.</p>\n<p dir=\"auto\">See the LICENSE-APACHE and LICENSE-MIT files for license details.</p>","updatedAt":"2025-05-21T15:55:55Z","upvoteCount":null,"author":{"login":"eryajf","avatarUrl":"https://avatars.githubusercontent.com/u/33259379?u=e4a4090a38ac2473aaed4ef9945233636776c6c3&v=4","url":"https://github.com/eryajf"},"category":null,"labels":{"edges":[{"node":{"name":"更多","color":"25B472"}},{"node":{"name":"文件管理系统","color":"0eb870"}},{"node":{"name":"sigoden","color":"b5cd4f"}}]},"comments":{"edges":[]}}},"pageContext":{"number":139,"previous":{"title":"qiaolin-li/dubbo-desktop-manager: 一个Dubbo的桌面管理软件","number":138},"next":{"title":"muesli/duf: 比 du 更好看的磁盘空间占用查看工具","number":140}}},
    "staticQueryHashes": ["151096407","2861350382"]}