From 14e0775213ccfea7a5d2323e665c41e55efa8ad5 Mon Sep 17 00:00:00 2001 From: Baptiste Peupier <60870677+BaptistePeupier@users.noreply.github.com> Date: Wed, 2 Feb 2022 09:32:09 +0100 Subject: [PATCH] Update nginx.conf --- frontend/conf/nginx.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/conf/nginx.conf b/frontend/conf/nginx.conf index 2966393..4659260 100644 --- a/frontend/conf/nginx.conf +++ b/frontend/conf/nginx.conf @@ -21,6 +21,10 @@ http { server frontend:4200; } + upstream flask-frontend { + server flask-frontend:5000; + } + server { listen 80; @@ -30,6 +34,10 @@ http { proxy_pass http://frontend; } + location /api { + proxy_pass http://flask-frontend; + } + } }