Implement server-side order persistence with SQLite and Flask API
This commit is contained in:
12
nginx.conf
12
nginx.conf
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user