27 lines
832 B
Plaintext
27 lines
832 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"
|
||
|
#
|
||
|
# 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>"
|