feat(monitor-frontend): add FaceAI Audit Monitor application with Vue.js and Vite setup
All checks were successful
Publish FaceAI Container / publish (push) Successful in 13m8s

- Created App.vue for the main application interface with localization support.
- Added main.js to bootstrap the Vue application.
- Introduced styles.css for application styling.
- Configured Vite for development and proxying API requests.
- Updated docker-compose files to include the new monitor service.
- Added Dockerfile for building the monitor frontend.
- Configured Nginx for serving the frontend and proxying API requests.
- Updated package.json and package-lock.json to include monitor-frontend workspace.
- Added initial SQLite database for audit monitoring.
This commit is contained in:
MaddoScientisto 2026-05-20 18:57:20 +02:00
commit a95ae56134
21 changed files with 1755 additions and 2 deletions

View file

@ -9,6 +9,7 @@ WORKDIR /app
COPY faceai/package.json ./package.json
COPY faceai/apps/frontend/package.json apps/frontend/package.json
COPY faceai/apps/monitor-frontend/package.json apps/monitor-frontend/package.json
COPY faceai/apps/backend/package.json apps/backend/package.json
COPY faceai/apps/processor/package.json apps/processor/package.json

View file

@ -0,0 +1,22 @@
FROM node:22-trixie-slim AS build
WORKDIR /app
COPY faceai/package.json ./package.json
COPY faceai/apps/frontend/package.json apps/frontend/package.json
COPY faceai/apps/monitor-frontend/package.json apps/monitor-frontend/package.json
COPY faceai/apps/backend/package.json apps/backend/package.json
COPY faceai/apps/processor/package.json apps/processor/package.json
RUN npm install
COPY faceai/ .
RUN npm run build --workspace @regalami/faceai-monitor-frontend
FROM nginx:1.27-alpine AS runtime
COPY faceai/docker/monitor-nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/apps/monitor-frontend/dist /usr/share/nginx/html
EXPOSE 80

View file

@ -0,0 +1,25 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location = /healthz {
add_header Content-Type text/plain;
return 200 'ok';
}
location /api/audit-monitor/ {
proxy_pass http://faceai:3001;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location / {
try_files $uri $uri/ /index.html;
}
}