From 4fb4629cb9b33dbfd2c071988489b8e76b04d55d Mon Sep 17 00:00:00 2001 From: duckietm Date: Wed, 5 Jul 2023 08:36:52 +0200 Subject: [PATCH] Update README.md Add NGINX example --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 48fca8c..de2d70a 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,15 @@ header ('Content-Type: image/png'); echo file_get_contents("http://127.0.0.1:8090/?" . $_SERVER['QUERY_STRING']); ?> ``` + +```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 ```