mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 02:00:46 +00:00
We'll be using this for our image generation roadmap: https://docs.google.com/document/d/1O9YI_iLwXkl2wAJJ23dFp3eHR-JzhlRHCBPD8psG-1E/edit The original Studio Gen 2 is in the `frontend/studio-gen-2` directory. The original Studio Gen 1 is in the `frontend/studio-gen-1` directory
76 lines
1.4 KiB
TypeScript
76 lines
1.4 KiB
TypeScript
import express from "express";
|
|
import { createProxyMiddleware } from "http-proxy-middleware";
|
|
import cors from "cors";
|
|
|
|
const app = express();
|
|
|
|
app.use(cors());
|
|
|
|
app.use(
|
|
"/v1",
|
|
createProxyMiddleware({
|
|
target: "https://api.storyteller.ai/v1",
|
|
changeOrigin: true,
|
|
secure: true,
|
|
logger: console,
|
|
}),
|
|
);
|
|
|
|
app.use(
|
|
"/google",
|
|
createProxyMiddleware({
|
|
target: "https://storage.googleapis.com",
|
|
changeOrigin: true,
|
|
secure: true,
|
|
// logger: console,
|
|
}),
|
|
);
|
|
|
|
app.use(
|
|
"/funnel",
|
|
createProxyMiddleware({
|
|
// target: "https://funnel.tailce84f.ts.net",
|
|
target: "https://style.storyteller.ai",
|
|
changeOrigin: true,
|
|
secure: true,
|
|
// logger: console,
|
|
}),
|
|
);
|
|
|
|
app.use(
|
|
"/cdn",
|
|
createProxyMiddleware({
|
|
target: "https://cdn.storyteller.ai",
|
|
changeOrigin: true,
|
|
secure: true,
|
|
// logger: console,
|
|
}),
|
|
);
|
|
|
|
app.use(
|
|
"/vocodes",
|
|
createProxyMiddleware({
|
|
target: "https://storage.googleapis.com/vocodes-public",
|
|
changeOrigin: true,
|
|
secure: true,
|
|
// logger: console,
|
|
}),
|
|
);
|
|
|
|
app.use(
|
|
"/gravatar",
|
|
createProxyMiddleware({
|
|
target: "https://www.gravatar.com",
|
|
changeOrigin: true,
|
|
secure: true,
|
|
logger: console,
|
|
}),
|
|
);
|
|
|
|
// app.use(express.json({ limit: "150mb" }));
|
|
// app.post("/upload-video", uploadVideo);
|
|
|
|
app.listen(3000, () => {
|
|
console.log("Listening on port 3000");
|
|
});
|