Score
0
Watch 434 Star 1.3K Fork 521

GVPcmswing / CmsWingNodeJSMIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
一款基于ThinkJS(Node.js MVC)和MySQL的功能强大的(PC端,手机端和微信公众平台)电子商务平台及CMS建站系统 spread retract

http://www.cmswing.com

  • JavaScript 55.9%
  • HTML 29.9%
  • CSS 13.9%
  • PHP 0.2%
  • Other 0.1%
Clone or download
nginx.conf 873 Bytes
Copy Edit Web IDE Raw Blame History
阿特 authored 2017-07-13 16:41 . 1.1
server {
listen 80;
server_name example.com www.example.com;
root F:\Projects\cmswing3/www;
set $node_port 8360;
index index.js index.html index.htm;
if ( -f $request_filename/index.html ){
rewrite (.*) $1/index.html break;
}
if ( !-f $request_filename ){
rewrite (.*) /index.js;
}
location = /index.js {
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://127.0.0.1:$node_port$request_uri;
proxy_redirect off;
}
location ~ /static/ {
etag on;
expires max;
}
}

Comment ( 0 )

Sign in for post a comment

NodeJS
1
https://gitee.com/arterli/CmsWing.git
git@gitee.com:arterli/CmsWing.git
arterli
CmsWing
CmsWing
master

Help Search

191139_cd20d5fd_5186603 191143_ebef6f8d_5186603