diff --git a/v0.5.0-Nginx-配置文件.md b/v0.5.0-Nginx-配置文件.md new file mode 100644 index 0000000..ddbe7b9 --- /dev/null +++ b/v0.5.0-Nginx-配置文件.md @@ -0,0 +1,31 @@ +##### 配置适用于版本:v0.5.0 + +* 示例如下 + +

+
+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;
+  }
+
+}