cf-worker-blossom-server/wrangler.toml.sample

32 lines
1007 B
Plaintext

# Name of the worker. Chnage "<name of the worker>" to your liking.
#
name = "<name of the worker>"
compatibility_date = "2023-12-01"
[vars]
#
# The public URL under which the service is available, i.e. usually a custom domain
PUBLIC_URL = "https://server.domain.name"
# When a public CDN url is set, the blobs are served directly through this URL
# with a 302 redirect. RECOMMENDED.
CDN_PUBLIC_URL = "https://cdn.media-server.slidestr.net"
#
# Comma separated list of nupbs of allowed users. No blanks spaces. Leave empty for public access.
ALLOWED_NPUBS = "<NPUB to give access>"
[[kv_namespaces]]
# Run the command to get a KV namespace ID and add the ID below, as "<Key Value Store ID>"
# npx wrangler kv:namespace create media-server
#
binding = "KV_BLOSSOM"
id = "<Key Value Store ID>"
[[r2_buckets]]
# Run the command to get a R2 bucket and add the bucket name below as <R2 bucket name>
# npx wrangler r2 bucket create media-server
#
binding = "BLOSSOM_BUCKET"
bucket_name = "<R2 bucket name>"