Skip to content

Commit

Permalink
上传文件
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxiongLuo committed Feb 22, 2019
1 parent bc35213 commit 592808c
Show file tree
Hide file tree
Showing 24 changed files with 7,671 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
@@ -0,0 +1,3 @@
{
"extends": "think"
}
4 changes: 4 additions & 0 deletions .gitattributes
@@ -0,0 +1,4 @@
*.js linguist-language=JavaScript
*.css linguist-language=JavaScript
*.html linguist-language=JavaScript
*.sql linguist-language=JavaScript
12 changes: 12 additions & 0 deletions .idea/easyMarketSever.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

204 changes: 204 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions development.js
@@ -0,0 +1,16 @@
const Application = require('thinkjs');
const babel = require('think-babel');
const watcher = require('think-watcher');
const notifier = require('node-notifier');

const instance = new Application({
ROOT_PATH: __dirname,
watcher: watcher,
transpiler: [babel, {
presets: ['think-node']
}],
notifier: notifier.notify.bind(notifier),
env: 'development'
});

instance.run();
30 changes: 30 additions & 0 deletions nginx.conf
@@ -0,0 +1,30 @@
server {
listen 80;
server_name example.com www.example.com;
root D:\projects\nideshop/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;
}
}

0 comments on commit 592808c

Please sign in to comment.