GUI-STUDIO commited on
Commit
5251a0f
·
1 Parent(s): 0b58259

Add HF mini-apps and sync workflows

Browse files

Introduce Hugging Face mini-apps (app-automation, app-ffmpeg) and CI to sync them to HF Spaces. Adds Dockerfiles, README metadata, tsdown builds, new Elysia route modules (vidlinkpro, vidsrc, ffmpeg, showtime) and integrates those routers into the mini-apps. Implement ffmpeg support with probe/build logic and an error helper; update package.json entries to TS entry points and add required dependencies. Update backend to recognize new proxy envs (hf-app-automation, hf-app-ffmpeg, hf-app-proxima), remove some debug logs, and adjust server listen options. Add GitHub Actions workflows to push built subtrees to HF Spaces and comment out prior worker sync path filtering.

Files changed (3) hide show
  1. Dockerfile +2 -0
  2. package.json +1 -1
  3. src/index.ts +5 -2
Dockerfile CHANGED
@@ -12,6 +12,8 @@ RUN bun install
12
  USER user
13
  ENV PATH="/home/user/.bun/bin:$PATH"
14
 
 
 
15
  COPY --chown=user . .
16
 
17
  EXPOSE 7860
 
12
  USER user
13
  ENV PATH="/home/user/.bun/bin:$PATH"
14
 
15
+ ENV NODE_TLS_REJECT_UNAUTHORIZED="0"
16
+
17
  COPY --chown=user . .
18
 
19
  EXPOSE 7860
package.json CHANGED
@@ -35,5 +35,5 @@
35
  "bun-types": "latest",
36
  "tsdown": "^0.20.3"
37
  },
38
- "module": "src/index.js"
39
  }
 
35
  "bun-types": "latest",
36
  "tsdown": "^0.20.3"
37
  },
38
+ "module": "src/index.ts"
39
  }
src/index.ts CHANGED
@@ -47,7 +47,7 @@ const app = new Elysia()
47
  _log: [{ code, e_message, ...err_d }, "\n"]
48
  });
49
 
50
- return new Response(error.toString(), {
51
  status: err_d.status,
52
  headers: {
53
  "x-error-message": err_d.message,
@@ -62,7 +62,10 @@ const app = new Elysia()
62
  return "🦊 Hello Rafiki 🍿";
63
  })
64
 
65
- .listen(7860);
 
 
 
66
 
67
  console.log(
68
  `🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`
 
47
  _log: [{ code, e_message, ...err_d }, "\n"]
48
  });
49
 
50
+ return new Response(err_d.message, {
51
  status: err_d.status,
52
  headers: {
53
  "x-error-message": err_d.message,
 
62
  return "🦊 Hello Rafiki 🍿";
63
  })
64
 
65
+ .listen({
66
+ port: 7860,
67
+ idleTimeout: 120
68
+ });
69
 
70
  console.log(
71
  `🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`