Skip to content

Commit

Permalink
dont be idiot like me and dont commit your env secrets lol
Browse files Browse the repository at this point in the history
  • Loading branch information
good-lly committed Dec 11, 2024
1 parent abf55a7 commit c1ded34
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ node_modules
.env
test_ops/data
.dev.vars
backup.wrangler.toml
wrangler.toml
49 changes: 49 additions & 0 deletions example.wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name = "lowstorage-worker"
main = "dev/wrangler-dev.js"
compatibility_date = "2020-10-30"
compatibility_flags = [ "nodejs_compat" ]
send_metrics = false
minify = true

[vars]
ENDPOINT='*******************************'
REGION='auto'
ACCESS_KEY_ID='*******************************'
SECRET_ACCESS_KEY='*******************************'
BUCKET_NAME='*******************************'


# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
# Note: Use secrets to store sensitive data.
# Docs: https://developers.cloudflare.com/workers/platform/environment-variables

# Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
# Docs: https://developers.cloudflare.com/queues/get-started
# [[queues.producers]]
# binding = "MY_QUEUE"
# queue = "my-queue"

# Bind a Queue consumer. Queue Consumers can retrieve tasks scheduled by Producers to act on them.
# Docs: https://developers.cloudflare.com/queues/get-started
# [[queues.consumers]]
# queue = "my-queue"

# Bind another Worker service. Use this binding to call another Worker without network overhead.
# Docs: https://developers.cloudflare.com/workers/platform/services
# [[services]]
# binding = "MY_SERVICE"
# service = "my-service"

# Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
# Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
# Docs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
# [[durable_objects.bindings]]
# name = "MY_DURABLE_OBJECT"
# class_name = "MyDurableObject"

# Durable Object migrations.
# Docs: https://developers.cloudflare.com/workers/learning/using-durable-objects#configure-durable-object-classes-with-migrations
# [[migrations]]
# tag = "v1"
# new_classes = ["MyDurableObject"]

0 comments on commit c1ded34

Please sign in to comment.