From 506ef8a43c3985067f2b9004fcc601056e172ddd Mon Sep 17 00:00:00 2001 From: CSDUMMI Date: Mon, 7 Oct 2024 14:25:10 +0200 Subject: Create initial dev environ --- fedishoop/main.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 fedishoop/main.ts (limited to 'fedishoop/main.ts') diff --git a/fedishoop/main.ts b/fedishoop/main.ts new file mode 100644 index 0000000..c54396d --- /dev/null +++ b/fedishoop/main.ts @@ -0,0 +1,13 @@ +import "@std/dotenv/load"; +import { behindProxy } from "@hongminhee/x-forwarded-fetch"; +import federation from "./federation.ts"; +import "./logging.ts"; + +Deno.serve( + { + port: 8000, + onListen: ({ port, hostname }) => + console.log("Server started at http://" + hostname + ":" + port) + }, + behindProxy((req) => federation.fetch(req, { contextData: undefined })), +); -- cgit v1.2.3