aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-04 14:18:30 +0900
committernsfisis <nsfisis@gmail.com>2024-08-04 14:18:30 +0900
commit1b794787a5194405cd99d80981008e20aa0e953d (patch)
tree81befd0cb15b9a878e0f0ca068fe90f7a3376284
parentfa7755592845a44928e88d2ab78cc04425aa9024 (diff)
downloadiosdc-japan-2024-albatross-1b794787a5194405cd99d80981008e20aa0e953d.tar.gz
iosdc-japan-2024-albatross-1b794787a5194405cd99d80981008e20aa0e953d.tar.zst
iosdc-japan-2024-albatross-1b794787a5194405cd99d80981008e20aa0e953d.zip
feat(proxy): proxy /admin/* to api-server
-rw-r--r--nginx.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/nginx.conf b/nginx.conf
index cee5b5f..92c21f3 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -20,6 +20,14 @@ http {
proxy_set_header X-Forwarded-Proto $scheme;
}
+ location /admin/ {
+ proxy_pass http://api-server;
+ 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 X-Forwarded-Proto $scheme;
+ }
+
location /sock/ {
proxy_pass http://api-server;
proxy_http_version 1.1;