From 12224aa16e28c907c79df7381b03b4fd23828c1b Mon Sep 17 00:00:00 2001 From: PlantUML Date: Sat, 25 Dec 2021 18:05:29 +0100 Subject: [PATCH] Add reverse-proxy documentation --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 9f5aa0f..d7c03b0 100644 --- a/README.md +++ b/README.md @@ -162,3 +162,22 @@ If you want to generate the war with java 8 as target just remove the src/test d rm -rf src/test mvn package -f pom.jdk8.xml [-Dapache-jsp.scope=compile] ``` + +## Use with reverse-proxy + +It is possible to use PlantUML with a reverse proxy. + +Here is an example of setting for nginx reverse proxy. + +``` +# PlantUML +location /plantuml/ { + include /etc/nginx/proxy.conf; + + proxy_set_header HOST $host/plantuml; + proxy_set_header X-Forwarded-Host $host/plantuml; + proxy_set_header X-Forwarded-Proto $scheme; + + proxy_pass http://plantuml-server:8080/; +} +```