From b9151e359fa35ab5056404c6406daba41feb41d1 Mon Sep 17 00:00:00 2001 From: Quackster Date: Thu, 20 Mar 2025 21:54:45 +1000 Subject: [PATCH] Add nginx readme [skip actions] * Update README.md Add NGINX example * Add nginx clarification --------- Co-authored-by: duckietm --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 7365e46..c35d5ab 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,17 @@ header ('Content-Type: image/png'); echo file_get_contents("http://127.0.0.1:8090/?" . $_SERVER['QUERY_STRING']); ?> ``` + +An example with Nginx: + +```nginx +location /imaging/ { + proxy_pass http://127.0.0.1:8090; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } +``` ### Cloning this repository ```