Add reverse-proxy documentation

This commit is contained in:
PlantUML 2021-12-25 18:05:29 +01:00 committed by GitHub
parent c5f088e50a
commit 12224aa16e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -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/;
}
```