apiVersion: v1
data:
  nginx.conf: |
    server {
      listen 8080;
      server_name _;

      root /app;
      index index.html;

      location /api {
          proxy_pass http://assisted-service.assisted-installer.svc.cluster.local:8090;
          proxy_http_version 1.1;
          proxy_set_header Upgrade $http_upgrade;
          proxy_set_header Connection 'upgrade';
          proxy_set_header Host $host;
          proxy_cache_bypass $http_upgrade;
          proxy_connect_timeout 120;
          proxy_send_timeout 120;
          proxy_read_timeout 120;
          send_timeout 120;
      }

      location / {
         try_files $uri /index.html;
      }
    }
kind: ConfigMap
metadata:
  name: ocp-metal-ui
