mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-15 08:03:42 +00:00
macOS Finder sends an unauthenticated OPTIONS request before attempting auth. It needs to see the DAV: 1, 2 compliance header in the response to know the server supports WebDAV. Without it, Finder shows "problem connecting to the server" and never prompts for credentials. OPTIONS is a safe discovery method that exposes no data, so it can be served without auth. |
||
|---|---|---|
| .. | ||
| 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.