GUI-STUDIO commited on
Commit
8423100
·
1 Parent(s): 6f56be9
Files changed (2) hide show
  1. src/index.ts +6 -0
  2. src/sub-router/proxima.ts +1 -1
src/index.ts CHANGED
@@ -64,6 +64,12 @@ const app = new Elysia()
64
  return "🦊 Hello Rafiki 🍿";
65
  })
66
 
 
 
 
 
 
 
67
  .listen({
68
  port: PORT || 7860,
69
  ...(NS_runtime.IS_PROD && { hostname: "0.0.0.0" }),
 
64
  return "🦊 Hello Rafiki 🍿";
65
  })
66
 
67
+ .get("/foo", (c) => {
68
+ const REQ_headers = ctx.req.raw.headers;
69
+ console.log("REQ_headers", REQ_headers);
70
+ return "🦊 Hello Rafiki 🍿";
71
+ })
72
+
73
  .listen({
74
  port: PORT || 7860,
75
  ...(NS_runtime.IS_PROD && { hostname: "0.0.0.0" }),
src/sub-router/proxima.ts CHANGED
@@ -146,7 +146,7 @@ sub_router.get(
146
  const [E_, proxy_data] = await NS_promise.F_catch_promise({
147
  promise: ky
148
  .post(new URL("/proxima/url-gen", REPO_ORIGIN), {
149
- timeout: false,
150
  json: {
151
  env: fallback_env,
152
  endpoint: encodeURI(og_endpoint),
 
146
  const [E_, proxy_data] = await NS_promise.F_catch_promise({
147
  promise: ky
148
  .post(new URL("/proxima/url-gen", REPO_ORIGIN), {
149
+ timeout: 15_000,
150
  json: {
151
  env: fallback_env,
152
  endpoint: encodeURI(og_endpoint),