Created
August 5, 2016 11:35
-
-
Save JerzySpendel/8307635d7e14bc14b5020b6e0b722d0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
charset utf-8; | |
client_max_body_size 75M; | |
location /ws { | |
proxy_pass http://127.0.0.1:5001; | |
} | |
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; | |
} | |
} | |
> var io = require('socket.io-client'); | |
undefined | |
> var socket = io.connect('ws://127.0.0.1:80/ws'); | |
undefined | |
socket jest zamknięty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment