mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-15 10:05:14 +00:00
Go's webdav.Handler returns 405 Method Not Allowed for GET on collections (directories). macOS Finder sends GET to the WebDAV root as part of its mount flow and refuses to connect when it gets 405. Add a finderCompatible wrapper that intercepts GET/HEAD on directories and returns a minimal 200 response, while passing all standard WebDAV methods through to the underlying handler unchanged. |
||
|---|---|---|
| .. | ||
| cmd/node-agent | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| package.json | ||
| README.md | ||
betterNAS Node Agent
Go service that runs on the NAS machine.
For the scaffold it does two things:
- serves
GET /health - serves a WebDAV export at
/dav/ - optionally serves multiple configured exports at deterministic
/dav/exports/<slug>/paths viaBETTERNAS_EXPORT_PATHS_JSON - registers itself with the control plane and syncs its exports when
BETTERNAS_CONTROL_PLANE_URLis configured - enforces issued WebDAV basic-auth mount credentials
This is the first real storage-facing surface in the monorepo.