From 679faf9fc28897f4ea9421713319fb21ab87149c Mon Sep 17 00:00:00 2001 From: AceDataCloud Date: Wed, 25 Jan 2023 23:41:52 +0800 Subject: [PATCH] update conf --- nginx.conf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/nginx.conf b/nginx.conf index 4a94bd6b..c58bcef6 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,20 +1,22 @@ server { listen 80; server_name localhost; + proxy_http_version 1.1; - location ~ ^/api/(me|token) { + location /api/me { + proxy_pass http://auth-backend:8000; + } + + location /api/token { proxy_pass http://auth-backend:8000; - proxy_http_version 1.1; } location /api/ { proxy_pass http://data-backend:8000; - proxy_http_version 1.1; } location /static/ { proxy_pass http://data-backend:8000; - proxy_http_version 1.1; } location / { @@ -24,7 +26,6 @@ server { } error_page 404 /404.html; - error_page 500 502 503 504 /50x.html; location = /50x.html {