Camunda and reverse proxy

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?

Would you please share more details about your environment?

  1. Is your nginx is running on same server where Camunda is running?
  2. What’s your Camunda version?
  3. Please do share the docker-compose file you have used?
  4. I would recommend to use hostname instead of localhost and update the HOST variable.

Hello!

Your NGINX config proxies Camunda services, but paths like /modeler return 404 because the apps use absolute URLs for assets. To fix this, either add extra location nelnet student loans blocks for static paths, switch to subdomain-based routing, or configure the frontend to respect base paths. Keycloak works because its paths align with your proxy setup.

Sure, I used the default configuration docker compose and I added the nginx servivce:

  reverse-proxy:
    image: nginx:latest
    container_name: reverse-proxy
    ports:
      - "80:80"
    networks:
      - camunda-platform
      - identity-network
      - web-modeler
    volumes:
      - ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
    depends_on:
      - zeebe
      - connectors
      - elasticsearch
      - identity
      - keycloak
      - operate
      - optimize
      - postgres
      - tasklist
      - web-modeler-db
      - web-modeler-restapi
      - web-modeler-webapp
      - web-modeler-websockets

and switched from ports→expose so that other services are not exposed outside.

Camunda version is 8.7.