From 7a5cde8f16be24d0b75921e3a8202769858ca263 Mon Sep 17 00:00:00 2001 From: hyh123a Date: Thu, 29 Jul 2021 15:30:29 +0800 Subject: [PATCH] fixed the bugs for nginx and pip --- myems-api/requirements.txt | 3 ++- nginx.conf | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/myems-api/requirements.txt b/myems-api/requirements.txt index 395a9ea9..12bd96f0 100644 --- a/myems-api/requirements.txt +++ b/myems-api/requirements.txt @@ -5,4 +5,5 @@ falcon falcon_cors falcon-multipart gunicorn -openpyxl \ No newline at end of file +openpyxl +pillow \ No newline at end of file diff --git a/nginx.conf b/nginx.conf index d54915f7..c8b63344 100644 --- a/nginx.conf +++ b/nginx.conf @@ -44,6 +44,13 @@ http { root /usr/share/nginx/html; } + location /api { + proxy_pass http://127.0.0.1:8000/; + proxy_connect_timeout 75; + proxy_read_timeout 600; + send_timeout 600; + } + } server { @@ -66,6 +73,13 @@ http { root /usr/share/nginx/html; } + location /api { + proxy_pass http://127.0.0.1:8000/; + proxy_connect_timeout 75; + proxy_read_timeout 600; + send_timeout 600; + } + }