From 5d6db0a986654b87fd61a109c20d4c2c076c8588 Mon Sep 17 00:00:00 2001 From: yk Date: Sun, 26 Mar 2023 23:39:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'README.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 5bb90980..f008bd5d 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,17 @@ server { add_header Access-Control-Allow-Methods GET,POST,OPTIONS; } + location /prod-api/ { + 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_pass http://172.17.0.1:8080/; + proxy_redirect default; + add_header Access-Control-Allow-Origin *; + add_header Access-Control-Allow-Headers X-Requested-With; + add_header Access-Control-Allow-Methods GET,POST,OPTIONS; + } + error_page 500 502 503 504 /50x.html; location = /50x.html {