user  nginx;
worker_processes  1;

events {
    worker_connections  32;
}

http {
    upstream swagger-ui {
      server swagger-ui:8080;
      keepalive 64;
    }
    upstream enterprise-api {
      server api:8228;
      keepalive 64;
    }
    server {
      listen 8080;
      listen [::]:8080;

      server_name localhost;


      location / {
        proxy_pass	  http://swagger-ui;
      }
      location /v1 {
        proxy_pass http://enterprise-api;
      }
    }
}

