Page History
...
Без форматирования |
---|
upstream suggestions { ip_hash; keepalive 16; server SUGGESTIONS_SERVER_IP:8080; } server { listen 80 default_server; listen [::]:80 default_server; # uncomment for https support # listen 443 ssl; # listen [::]:443 ssl; server_name _; # uncomment for https support # IMPORTANT: you should issue certificate (public.pem and and private.pem) first # ssl_certificate /etc/nginx/ssl/public.pem; # ssl_certificate_key /etc/nginx/ssl/private.pem; proxy_set_header Host $host$http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; proxy_set_header Connection ""; location /suggestions/ { proxy_pass http://suggestions; } } |
...
Overview
Content Tools