First_Commit

This commit is contained in:
2026-01-12 12:16:53 +01:00
parent 89d74363f8
commit 91cd1dff2f
26 changed files with 6720 additions and 3093 deletions

View File

@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20-alpine
WORKDIR /app
@@ -26,12 +26,12 @@ export default defineConfig({
},
server: {
host: '0.0.0.0',
port: 80,
port: 90,
strictPort: true,
allowedHosts: ['mygta.ensup-adm.net', 'localhost'],
allowedHosts: ['mygta-dev.ensup-adm.net', 'localhost'],
proxy: {
'/api': {
target: 'http://gta-backend:3000',
target: 'http://backend:3004',
changeOrigin: true,
secure: false,
configure: (proxy, options) => {
@@ -39,7 +39,7 @@ export default defineConfig({
console.log('Proxy error:', err);
});
proxy.on('proxyReq', (proxyReq, req, res) => {
console.log('Proxying:', req.method, req.url, '-> http://gta-backend:3000');
console.log('Proxying:', req.method, req.url, '-> http://backend:3004');
});
}
}
@@ -48,6 +48,6 @@ export default defineConfig({
});
VITECONFIG
EXPOSE 80
EXPOSE 90
CMD ["npx", "vite", "--host", "0.0.0.0", "--port", "80"]
CMD ["npx", "vite", "--host", "0.0.0.0", "--port", "90"]