NGINX avisa quando parar ou reiniciar

2

Estou tentando usar o NGINX como um proxy reverso no meu fluxo de trabalho de desenvolvimento. No entanto, sempre que eu paro ou reinicio o servidor, recebo este aviso:

nginx: [warn] could not build optimal types_hash, you should increase either types_hash_max_size: 2048 or types_hash_bucket_size: 64; ignoring types_hash_bucket_size

Eu tentei definir types_hash_max_size como 2048 e 4096, types_hash_bucket_size como 64 e 128 e server_names_hash_bucket_size como 128. Eu tentei colocar essas configurações em http, server e location, sem sucesso.

Aqui está meu arquivo de configuração:

http {
  server { 
    listen 8080;
    listen [::]:8080;

    server_name localhost;

    location / { 
      proxy_pass http://example.com/;
    }
  }

  server_names_hash_bucket_size 128;
  types_hash_max_size 4096;
  types_hash_bucket_size 128;
}

events {}

Meu ambiente:

$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: Fedora
Description:    Fedora release 27 (Twenty Seven)
Release:    27
Codename:   TwentySeven

$ nginx -v
nginx version: nginx/1.12.1

Além disso, estou executando o NGINX desta maneira:

$ sudo nginx -p 'pwd' -c proxy.conf
    
por arslivinski 02.07.2018 / 15:29

0 respostas