aboutsummaryrefslogtreecommitdiffhomepage
path: root/nginx.conf
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-04 20:49:12 +0900
committernsfisis <nsfisis@gmail.com>2024-08-04 20:49:12 +0900
commitff959dadb1f990173b9df3105ccfc96b1c6c092e (patch)
tree4690c2aabafaedb50f86ece4900c9616d9518947 /nginx.conf
parentfa7755592845a44928e88d2ab78cc04425aa9024 (diff)
parentf4bae7f755ca25b2547dc98b2db2fdb255948bc5 (diff)
downloadphperkaigi-2025-albatross-ff959dadb1f990173b9df3105ccfc96b1c6c092e.tar.gz
phperkaigi-2025-albatross-ff959dadb1f990173b9df3105ccfc96b1c6c092e.tar.zst
phperkaigi-2025-albatross-ff959dadb1f990173b9df3105ccfc96b1c6c092e.zip
Merge branch 'feat/admin-pages'
Diffstat (limited to 'nginx.conf')
-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;