Implement server-side order persistence with SQLite and Flask API

This commit is contained in:
MayaChat
2025-11-24 13:24:10 -05:00
parent 8df02cee18
commit 8b9ffbc586
5 changed files with 317 additions and 8 deletions

View File

@@ -32,6 +32,18 @@ http {
proxy_read_timeout 5s;
}
# Order service API - forwards to order-service
location /api/order {
proxy_pass http://order-service:8082$request_uri;
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 Content-Type application/json;
proxy_connect_timeout 3s;
proxy_read_timeout 5s;
}
# Serve static files
location / {
root /usr/share/nginx/html;