I’m trying to use Camunda together with a reverse proxy (in my case, NGINX). For now, I’m working locally using the HTTP protocol. After asking the Camunda bot, looking through the documentation, and digging into other topics, I’ve come up with the following NGINX configuration:
default.conf
server {
listen 80;
server_name localhost;
location /auth/ {
proxy_pass http://keycloak:18080/auth/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-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 /identity/ {
proxy_pass http://identity:8084/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-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 /modeler/ {
proxy_pass http://web-modeler-webapp:8070/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-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;
}
[…] # other services...
}
If I navigate to the URL “localhost/modeler” or any other Camunda service, NGINX returns a 404 (Not Found). The only address that seems to work is “localhost/auth”, which correctly redirects me to the Keycloak dashboard.
The bot told me to modify the modeler’s SERVER_URL system variable with the actual address (in my case it should be “localhost/modeler”), but it doesn’t seem to make any difference.
Has anyone else had the same issue? And how did they solve it?