Created v0.5.0 Nginx 配置文件 (markdown)

master
假想控 2018-01-08 13:07:24 +08:00
parent 837cef9053
commit 509cc4b65c
1 changed files with 31 additions and 0 deletions

@ -0,0 +1,31 @@
##### 配置适用于版本v0.5.0
* 示例如下
<pre><code>
server {
listen 80;
location /luna/ {
try_files $uri / /index.html;
alias /opt/luna/;
}
location /socket.io/ {
proxy_pass http://localhost:5000/socket.io/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# WebSocket support (nginx 1.4)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location / {
proxy_pass http://localhost:8080;
}
}