Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

250
Visualizações
CSS not loading when Deployment of Angular App on openshift Kubernates with Custom Path

Currently deploying the angular App on the OpenShift Kubernates platform Using Ngnix , The issue was if i add a custom path on the Ingress , Blank page was coming , the below error is shown on the browser console.Resource interpreted as Stylesheet but transferred with MIME type text/htm.But if i change the path to just / then it's loading . Below are Docker file,ngnix config and Ingress.

    **DockerFile:**

    FROM node:10-alpine AS builder

    WORKDIR /src/app

    COPY package*.json ./

    RUN npm install

    COPY . .

    RUN npm run build-prod

    FROM nginx:1.13.12-alpine

    COPY --from=builder /src/app/dist /etc/nginx/html

    COPY ./nginx.conf /etc/nginx/nginx.conf

    **Ngnix config:**

    pid /tmp/nginx.pid;
    events{
    }
    http {
        include    mime.types;
        server {
          listen 9501;
          server_name data-ui;
          client_body_temp_path /tmp/nginx 1 2;
          proxy_temp_path /tmp/nginx-proxy;
          fastcgi_temp_path /tmp/nginx-fastcgi;
          uwsgi_temp_path /tmp/nginx-uwsgi;
          scgi_temp_path /tmp/nginx-scgi;
          location / {
            root /etc/nginx/html;
            index index.html index.htm;
            try_files $uri $uri/ /index.html =404;
           }
        }
    }

    **Ingress:**
    apiVersion: extensions/v1beta1
    kind: Ingress`enter code here`
    metadata:
    name:data-ui-ingress
    spec:
    rules:
    - host: XXXXXXXXXXXXXXXXXXXXXX
    http:
    paths:
    - path: /data
    backend:
    serviceName: data-ui
    servicePort: 9501 ```
over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda