Настройка nginx

Материал из CIToRUS wiki
Перейти к: навигация, поиск
 server {
   listen                      80;
   server_name                 82.162.194.228 kedr.primorsky.ru 10.5.1.228;
   client_max_body_size        6G;
   large_client_header_buffers 8 32k;
   location / {
       proxy_pass http://127.0.0.1:8888/;
       proxy_redirect     off;
       proxy_set_header   Host $host;
       proxy_set_header   X-Real-IP $remote_addr;
       proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_set_header   X-Forwarded-Host $server_name;
       
       # Настройки для проксирования websockets
       proxy_set_header   Upgrade $http_upgrade;
       proxy_set_header   Connection "upgrade";
       proxy_buffer_size 64k;
       proxy_max_temp_file_size 0;
       proxy_buffers 8 32k;
   }
   location /ngw {
       uwsgi_read_timeout 600s;
       uwsgi_send_timeout 600s;
       include            uwsgi_params;
       uwsgi_pass         unix:/home/nextgis/ngw/uwsgi/ngw.sock;
   }
 }