forked from shen100/wemall
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
435 additions
and
562 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ dist | |
.idea | ||
*.swp | ||
.bashrc | ||
debug | ||
debug | ||
wemall |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"webPoweredBy": "wemall", /*前端node.js加的X-Powered-By*/ | ||
"apiPoweredBy": "wemall api", /*后台go加的X-Powered-By*/ | ||
"database": { | ||
"Dialect" : "mysql", | ||
"Database" : "wemall", | ||
"User" : "root", | ||
"Password" : "test1234", | ||
"Charset" : "utf8", | ||
"SQLLog" : true, /*是否输出SQL*/ | ||
"URL" : "" /*数据库连接地址*/ | ||
}, | ||
"nodejs": { | ||
"page": { | ||
"title" : "wemall-微商城", /*网站标题*/ | ||
"sitePath" : "", /*网站前缀,适用于子应用的场景*/ | ||
"jsPath" : "/javascripts", /*前端JS请求地址前缀*/ | ||
"imagePath" : "/images", /*前端图片请求地址前缀*/ | ||
"cssPath" : "/styles", /*前端css请求地址前缀*/ | ||
"ueditorURL" : "/ueditor/" /*前端ueditor请求地址前缀*/ | ||
}, | ||
"env" : "production", /*模式(开发,测试,产品)*/ | ||
"useProxy" : false, /*node.js发请求是否使用代理*/ | ||
"proxyUri" : "http://127.0.0.1:8881", /*代理地址及端口*/ | ||
"port" : 8010, /*前端node.js监听的端口*/ | ||
"staticPort" : 8011 /*前端静态文件服务器监听的端口(本地开发时使用)*/ | ||
}, | ||
"go": { | ||
"Debug" : true, /*是否是debug模式*/ | ||
"UploadImgDir" : "/Users/liushen/dev/uploads/img", /*图片上传的目录*/ | ||
"ImgPath" : "/img", /*上传后的图片请求地址前缀*/ | ||
"Port" : 8012, /*go监听的端口*/ | ||
"SessionID" : "iris.sid", /*后台设置的session id*/ | ||
"MaxOrder" : 10000, /*最大的排序号*/ | ||
"MinOrder" : 0, /*最小的排序号*/ | ||
"PageSize" : 20, /*默认每页的条数*/ | ||
"MaxPageSize" : 100, /*每页最大的条数*/ | ||
"MinPageSize" : 20, /*每页最小的条数*/ | ||
"MaxNameLen" : 100, /*最大的名称长度*/ | ||
"MaxRemarkLen" : 500, /*最大的备注长度*/ | ||
"MaxContentLen" : 10000, /*最大的内容长度*/ | ||
"MaxProductCateCount" : 6 /*产品最多的分类个数*/ | ||
}, | ||
"software": { | ||
"name" : "wemall微商城", /*软件名称*/ | ||
"version" : "1.0.0", /*软件版本*/ | ||
"officialURL" : "https://www.shen100.com" /*官网地址*/ | ||
}, | ||
"api": { | ||
"Prefix" : "/api", /*api服务请求前缀*/ | ||
"URL" : "http://127.0.0.1:8012/api" /*api服务请求地址(给node.js调用)*/ | ||
}, | ||
"docs": { | ||
"github": "https://github.com/shen100/wemall" /*wemall项目github地址*/ | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# nginx配置 | ||
|
||
## 开启gzip压缩 | ||
|
||
``` | ||
gzip on; | ||
gzip_min_length 10k; | ||
gzip_buffers 4 16k; | ||
gzip_comp_level 2; | ||
gzip_types application/x-javascript text/javascript application/javascript text/plain text/css application/json application/xml image/jpeg image/gif image/png; | ||
gzip_vary off; | ||
gzip_disable "MSIE [1-6]\."; | ||
``` |
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
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
Oops, something went wrong.