- Implemented getWarehouseById method in warehouseService to fetch warehouse details by ID. - Added new types for warehouse inventory management in warehouse.d.ts and warehouse.inventory.d.ts. - Created WarehouseAddInventory.vue component for handling inventory entries with serial number management. - Developed inventoryWarehouseServices for adding inventory through API. - Updated router to include the new inventory management component. - Added Docker configuration files for production deployment. - Created Nginx configuration for serving the application. - Added .dockerignore and .env.production for environment-specific settings.
24 lines
512 B
Nginx Configuration File
24 lines
512 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name 127.0.0.1;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
# Optional: Cache static assets for better performance
|
|
location ~* \.(?:ico|css|js|gif|jpe?g|png|woff2?|eot|ttf|svg|otf)$ {
|
|
expires 6M;
|
|
access_log off;
|
|
add_header Cache-Control "public";
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /usr/share/nginx/html;
|
|
}
|
|
}
|