Replace frontend with real working CAD editor source from /data/web-cad-neu (TS, React 18, full ribbon bar, KI, layers, tools)

This commit is contained in:
Agent Zero
2026-06-28 10:00:32 +02:00
parent b56c65815a
commit 2109f0544b
117 changed files with 22344 additions and 5121 deletions
+19 -20
View File
@@ -1,25 +1,24 @@
server {
listen 80;
server_name localhost;
listen 80;
root /usr/share/nginx/html;
index index.html;
root /usr/share/nginx/html;
index index.html;
resolver 127.0.0.11 valid=30s;
# Serve static frontend
location / {
try_files $uri /index.html;
}
location / { try_files $uri $uri/ /index.html; }
# Proxy API requests to backend
location /api/ {
proxy_pass http://backend:3001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
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 /api/ {
set $backend http://backend:3001;
proxy_pass $backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location /ws {
set $backend http://backend:3001;
proxy_pass $backend;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}