S
S
shardik_rus2020-02-05 19:42:44
Angular
shardik_rus, 2020-02-05 19:42:44

dokku not working. how to fix?

the application based on angular 4 worked until the moment when faspanel spontaneously rewrote the nginx configs (in particular ssl.conf), which led to changes. now the app is not working.
from the logs:

2020/02/05 16:16:10 [error] 11350#11350: *128 connect() failed (111: Connection refused) while connecting to upstream, client: 51.254.18.52, server: ***.ru, request: "GET /favicon.ico HTTP/1.1", upstream: "http://172.17.0.6:5000/favicon.ico", host: "***.ru", referrer: "http://***.ru/"


nginx config for application:

server {
  listen      [::]:80;
  listen      80;
  server_name ***.ru; 
  access_log  /var/log/nginx/nearme-access.log;
  error_log   /var/log/nginx/nearme-error.log;

  location    / {

    gzip on;
    gzip_min_length  1100;
    gzip_buffers  4 32k;
    gzip_types    text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml  application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml;
    gzip_vary on;
    gzip_comp_level  6;

    proxy_pass  http://nearme-5000;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $http_connection;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header X-Forwarded-Port $server_port;
    proxy_set_header X-Request-Start $msec;
  }
  include /home/dokku/nearme/nginx.conf.d/*.conf;

  error_page 400 401 402 403 405 406 407 408 409 410 411 412 413 414 415 416 417 418 420 422 423 424 426 428 429 431 444 449 450 451 /400-error.html;
  location /400-error.html {
    root /var/lib/dokku/data/nginx-vhosts/dokku-errors;
    internal;
  }

  error_page 404 /404-error.html;
  location /404-error.html {
    root /var/lib/dokku/data/nginx-vhosts/dokku-errors;
    internal;
  }

  error_page 500 501 502 503 504 505 506 507 508 509 510 511 /500-error.html;
  location /500-error.html {
    root /var/lib/dokku/data/nginx-vhosts/dokku-errors;
    internal;
  }

}

upstream nearme-5000 {

  server 172.17.0.6:5000;
}


tell me where to dig? Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question