Nginx WS {websocket} Proyx

| Ağustos 27, 2019
 server {
        listen       80;
listen       [::]:80;
        server_name  localhost;
client_max_body_size 0;
        #charset koi8-r;

        #access_log  /nginx/logs/host.access.log  main;

#ssl on;
ssl_session_cache  builtin:1000  shared:SSL:10m;
ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
        large_client_header_buffers 4 32k;
location / {
proxy_set_header 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 Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";



if ($host = '{domain}.{extension}') {
proxy_pass http://{IP Adress}:80;

}
}

Yorum Yaz