Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Skeleton

Manav Rathiac8ebd0ed328
diff --git a/infra/workers/public-albums/package.json b/infra/workers/public-albums/package.json
new file mode 100644
index 0000000000..946f42689f
--- /dev/null
+++ b/infra/workers/public-albums/package.json
@@ -0,0 +1,10 @@
+{
+ "name": "public-albums",
+ "private": true,
+ "devDependencies": {
+ "@cloudflare/workers-types": "^4.20240614.0",
+ "typescript": "^5",
+ "wrangler": "^3"
+ },
+ "packageManager": "[email protected]"
+}
diff --git a/infra/workers/public-albums/src/index.ts b/infra/workers/public-albums/src/index.ts
new file mode 100644
index 0000000000..3b8d194cdc
--- /dev/null
+++ b/infra/workers/public-albums/src/index.ts
@@ -0,0 +1,7 @@
+/** Proxy requests for files and thumbnails in public albums. */
+
+export default {
+ async fetch(request: Request) {
+ return new Response(null, { status: 405 });
+ },
+} satisfies ExportedHandler;
diff --git a/infra/workers/public-albums/tsconfig.json b/infra/workers/public-albums/tsconfig.json
new file mode 100644
index 0000000000..a65b752070
--- /dev/null
+++ b/infra/workers/public-albums/tsconfig.json
@@ -0,0 +1 @@
+{ "extends": "../tsconfig.base.json", "include": ["src"] }
diff --git a/infra/workers/public-albums/wrangler.toml b/infra/workers/public-albums/wrangler.toml
new file mode 100644
index 0000000000..9adad20f04
--- /dev/null
+++ b/infra/workers/public-albums/wrangler.toml
@@ -0,0 +1,11 @@
+name = "public-albums"
+main = "src/index.ts"
+compatibility_date = "2024-06-14"
+
+routes = [
+ { pattern = "public-albums.ente.io", custom_domain = true }
+]
+
+tail_consumers = [
+ { service = "tail" }
+]