forked from longern/FlareDrive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.dev.vars.example
More file actions
37 lines (28 loc) · 1.77 KB
/
Copy path.dev.vars.example
File metadata and controls
37 lines (28 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copy this file to .dev.vars for the local Wrangler Pages Functions backend
# WebDAV Basic Auth username checked by the backend
WEBDAV_USERNAME="admin"
# WebDAV Basic Auth password checked by the backend
WEBDAV_PASSWORD="admin"
# Optional limited WebDAV credentials for clients you do not fully trust
# Uncomment and replace each password with the SHA-256 of the raw token secret
# WEBDAV_ACCESS_TOKENS='[{"username":"phone","password":"<sha256-hex>","access":"rw","includes":["webdav/phone/"],"excludes":["webdav/phone/private/"]},{"username":"reader","password":"<sha256-hex>","access":"ro","includes":["webdav/"],"excludes":[]}]'
# Optional public read access for WebDAV browsing
# Set to 1 to allow GET, HEAD, and PROPFIND without Basic Auth or app login
# WEBDAV_PUBLIC_READ="1"
# Frontend auth mode.
# Use "basic" to keep the original browser/WebDAV Basic Auth behavior.
# Use "password" to enable the app login dialog backed by D1 sessions.
FLAREDRIVE_AUTH_MODE="basic"
# Single frontend login account used when FLAREDRIVE_AUTH_MODE="password".
# The example password hash is SHA-256("admin").
FLAREDRIVE_LOGIN_ACCOUNT='{"username":"admin","password":"8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918"}'
# ECDH P-256 private JWK used to decrypt password login payloads.
# Generate your own key and keep it secret.
FLAREDRIVE_LOGIN_PRIVATE_KEY='<private-jwk-json>'
# Optional Cloudflare Turnstile keys used to verify password login attempts.
# Set both values to require Turnstile before /api/auth/login accepts a request.
# FLAREDRIVE_TURNSTILE_SITE_KEY="<turnstile-site-key>"
# FLAREDRIVE_TURNSTILE_SECRET_KEY="<turnstile-secret-key>"
# Session lifetime in seconds for normal and keep-signed-in logins.
FLAREDRIVE_SESSION_TTL_SECONDS="86400"
FLAREDRIVE_REMEMBER_TTL_SECONDS="604800"