- admin-ui/: React + Tailwind SPA at /app/ (Dashboard, Users, Roles, Services, Audit) - rbac-routes.js: POST /api/internal/permissions/user (service-to-service, no auth) - server.js: /api/whoami endpoint for admin SPA auth via nginx X-Email - server.js: /auth/session now checks X-Email fallback for Google SSO users - server.js: SPA catch-all for /app/* routes - server.js: Trusted IP auth now sets X-Auth-Request-Email response header - public/index.html: Added Admin Panel link - 3 ecosystem users registered (Rolf, Victoria, Zaid)
18 lines
353 B
JavaScript
18 lines
353 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
base: '/app/',
|
|
build: {
|
|
outDir: '../public/app',
|
|
emptyOutDir: true,
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': 'http://127.0.0.1:3030',
|
|
'/auth': 'http://127.0.0.1:3030',
|
|
},
|
|
},
|
|
});
|