Ошибка конфигурации Nginx - пользовательский URL не может загружать статические файлы - PullRequest
0 голосов
/ 21 сентября 2019

У меня проблемы с конфигурацией nginx.Я добавил proxy_pass, но он не загружает статические файлы.

worker_processes 1;

events {
    worker_connections 1024;
}

http {
    resolver 8.8.8.8 ipv6=off;
    client_max_body_size 1G;

    server {
        listen 4006;

        server_name loteo.localhost;

        location /poker/ {
            gzip on;
            gzip_types *;

            proxy_pass http://ec2-54-93-228-71.eu-central-1.compute.amazonaws.com/;
        }
    }
}

Но когда я запускаю его, я получаю эту ошибку,

Refused to apply style from 'http://localhost:4006/static/css/main.53d4af3a.chunk.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
(index):1 GET http://localhost:4006/static/js/2.60024d71.chunk.js net::ERR_ABORTED 404 (Not Found)
(index):9 GET http://localhost:4006/static/js/main.afcd2f10.chunk.js net::ERR_ABORTED 404 (Not Found)
(index):1 GET http://localhost:4006/static/js/2.60024d71.chunk.js net::ERR_ABORTED 404 (Not Found)
(index):9 GET http://localhost:4006/static/js/main.afcd2f10.chunk.js net::ERR_ABORTED 404 (Not Found)

Я не уверен, как я могу это исправить,Спасибо.

...