add proper auth

This commit is contained in:
Pierre
2026-04-26 15:26:46 +02:00
parent f4ad0383cd
commit 9e6c3859c0
9 changed files with 454 additions and 16 deletions
+8 -16
View File
@@ -3,17 +3,14 @@
host: 0.0.0.0
port: 8080
# Simple user authentication
simple_dc:
user_mapping:
"/":
metamesh:
password: metamesh
roles: ["editor"]
"/webdav":
metamesh:
password: metamesh
roles: ["editor"]
# Authentication is delegated to a custom DomainController that validates the
# basic-auth password against meta-fuse's per-device token store. Any
# non-empty username is accepted; the password IS the token (`mfwd_*`).
http_authenticator:
domain_controller: webdav_token_controller.WebdavTokenController
accept_basic: true
accept_digest: false
default_to_digest: false
# Mount the virtual filesystem
provider_mapping:
@@ -31,11 +28,6 @@ server: cheroot
server_args:
numthreads: 10
# Authentication settings
accept_basic: true
accept_digest: false
default_to_digest: false
# HTTP configuration
add_header_MS_Author_Via: false