Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JerzySpendel/33ccbed5b4e790d8ba3c92637f44e70c to your computer and use it in GitHub Desktop.
Save JerzySpendel/33ccbed5b4e790d8ba3c92637f44e70c to your computer and use it in GitHub Desktop.
server {
listen 80;
charset utf-8;
client_max_body_size 75M;
location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|ipa|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm)$ {
root /srv/nook/backend/nook-app/public;
}
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-Uri $request_uri;
proxy_set_header Host $http_host;
proxy_set_header X-Nginx-Proxy true;
proxy_pass http://127.0.0.1:3000;
proxy_redirect off;
}
location /phpmyadmin {
root /usr/share;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 5000;
location / {
proxy_pass http://127.0.0.1:5001;
}
}
> var io = require('socket.io-client');
undefined
> var socket = io.connect('ws://localhost:5000');
socket jest otwarty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment