Extract memind_adm admin server, add local dev tooling, and remove image-generation.

Split platform admin and ops APIs into standalone admin-server.mjs with network guards; simplify billing to RMB token pricing, refactor user auth, and add rsync deploy plus local-test scripts and docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Your Name
2026-06-17 16:39:39 -07:00
parent ab0718938e
commit b0f5d6a51c
98 changed files with 5394 additions and 3010 deletions
+9 -3
View File
@@ -1,16 +1,22 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
const apiProxy = process.env.OPS_API_PROXY ?? 'http://127.0.0.1:8081';
// /auth (login + session status) is served by the public portal; the ops
// console API (/api/ops/v1) lives in the standalone memind_adm service.
const authProxy = process.env.OPS_API_PROXY ?? 'http://127.0.0.1:8081';
const adminProxy = process.env.OPS_ADMIN_PROXY ?? 'http://127.0.0.1:8082';
export default defineConfig({
base: '/ops/',
plugins: [react()],
server: {
host: '0.0.0.0',
port: 3002,
allowedHosts: ['127.0.0.1', 'localhost', '.localhost'],
proxy: {
'/api': apiProxy,
'/auth': apiProxy,
'/admin-api': adminProxy,
'/api': adminProxy,
'/auth': authProxy,
},
},
build: {