mirror of
https://github.com/saltbo/zpan.git
synced 2026-09-19 01:51:11 +08:00
Serve canonical root-relative DAV URLs on a configured hostname while preserving the existing /dav mount. Reconcile Cloudflare rewrite rules and Worker custom domains during fork deployments, and expose the effective URL through site options.
22 lines
841 B
Plaintext
22 lines
841 B
Plaintext
# Local development secrets for `wrangler dev` / `vite dev`.
|
|
# Copy this file to `.dev.vars` (gitignored) and fill in real values.
|
|
|
|
# Required: better-auth signing secret. Generate with: openssl rand -base64 32
|
|
BETTER_AUTH_SECRET=
|
|
|
|
# Local ZPan URL.
|
|
BETTER_AUTH_URL=http://localhost:5185
|
|
TRUSTED_ORIGINS=http://localhost:5185
|
|
|
|
# Optional dedicated WebDAV origin. A reverse proxy must map its root to /dav.
|
|
WEBDAV_PUBLIC_URL=
|
|
|
|
# Local ZPan Cloud URL.
|
|
ZPAN_CLOUD_URL=http://localhost:5186
|
|
|
|
# Trusted license signing public keys (PASERK k4.public.*, comma-separated).
|
|
# Dev keys are configured here — NOT hardcoded in source — so a leaked dev key is
|
|
# rotated via config and never trusted by production builds. Pair this with the
|
|
# matching LICENSE_SIGNING_KEY in zpan-cloud/.dev.vars (run `npm run gen-keypair`).
|
|
ZPAN_LICENSE_PUBLIC_KEYS=
|