π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Sketch
Manav Rathid76c6dd63c5b
diff --git a/infra/workers/thumbnails/package.json b/infra/workers/thumbnails/package.jsonnew file mode 100644index 0000000000..e5107655bc--- /dev/null+++ b/infra/workers/thumbnails/package.json@@ -0,0 +1,10 @@+{+ "name": "thumbnails",+ "private": true,+ "devDependencies": {+ "@cloudflare/workers-types": "^4.20240614.0",+ "typescript": "^5",+ "wrangler": "^3"+ },+ "packageManager": "[email protected]"+}diff --git a/infra/workers/thumbnails/src/index.ts b/infra/workers/thumbnails/src/index.tsnew file mode 100644index 0000000000..5100ec0af0--- /dev/null+++ b/infra/workers/thumbnails/src/index.ts@@ -0,0 +1,15 @@+/** Proxy requests for thumbnails. */++export default {+ async fetch(request: Request) {+ switch (request.method) {+ // case "OPTIONS":+ // return handleOPTIONS(request);+ // case "GET":+ // return handleGET(request);+ default:+ console.log(`Unsupported HTTP method ${request.method}`);+ return new Response(null, { status: 405 });+ }+ },+} satisfies ExportedHandler;diff --git a/infra/workers/thumbnails/tsconfig.json b/infra/workers/thumbnails/tsconfig.jsonnew file mode 100644index 0000000000..a65b752070--- /dev/null+++ b/infra/workers/thumbnails/tsconfig.json@@ -0,0 +1 @@+{ "extends": "../tsconfig.base.json", "include": ["src"] }diff --git a/infra/workers/thumbnails/wrangler.toml b/infra/workers/thumbnails/wrangler.tomlnew file mode 100644index 0000000000..8f45b859e8--- /dev/null+++ b/infra/workers/thumbnails/wrangler.toml@@ -0,0 +1,11 @@+name = "thumbnails"+main = "src/index.ts"+compatibility_date = "2024-06-14"++routes = [+ { pattern = "thumbnails.ente.io", custom_domain = true }+]++tail_consumers = [+ { service = "tail" }+]