From c1ded342d02a5ec2e176443b0d59a54e57f84093 Mon Sep 17 00:00:00 2001 From: Jolly Good <1671375+good-lly@users.noreply.github.com> Date: Wed, 11 Dec 2024 10:46:54 +0100 Subject: [PATCH] dont be idiot like me and dont commit your env secrets lol --- .gitignore | 2 +- example.wrangler.toml | 49 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 example.wrangler.toml diff --git a/.gitignore b/.gitignore index 6dd8f21..8afbfe6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ node_modules .env test_ops/data .dev.vars -backup.wrangler.toml +wrangler.toml diff --git a/example.wrangler.toml b/example.wrangler.toml new file mode 100644 index 0000000..d9b7a39 --- /dev/null +++ b/example.wrangler.toml @@ -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"] +