-
Notifications
You must be signed in to change notification settings - Fork 1
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
17,541 changed files
with
3,850,878 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
105 changes: 105 additions & 0 deletions
105
Noob/Web/Noob.Web.Admin.Bootstrap/App_Data/Configs/GeneralConfigs.config
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,105 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<configSections> | ||
<sectionGroup name="GeneralConfigs"> | ||
<section name="WebConfig" type="System.Configuration.NameValueSectionHandler,System, Version=4.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089" /> | ||
<section name="AdminConfig" type="System.Configuration.NameValueSectionHandler,System, Version=4.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089" /> | ||
<section name="DbConfig" type="System.Configuration.NameValueSectionHandler,System, Version=4.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089" /> | ||
<section name="EmailConfig" type="System.Configuration.NameValueSectionHandler,System, Version=4.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089" /> | ||
</sectionGroup> | ||
</configSections> | ||
<!---基础配置信息 start--> | ||
<GeneralConfigs> | ||
<!---网站配置 start--> | ||
<WebConfig> | ||
<!--网站名称--> | ||
<add key="WebTitle" value="互联网站内容管理系统" /> | ||
<!-- 网站url地址--> | ||
<add key="WebUrl" value="http://www.wtane.com" /> | ||
<!--ICP备案--> | ||
<add key="ICP" value="ICP备案" /> | ||
<!--统计代码--> | ||
<add key="StatCode" value="统计代码" /> | ||
<!--当前站点web园进程数 --> | ||
<add key="WebGarden" value="1" /> | ||
<!-- 网站版权文字 --> | ||
<add key="Copyright" value="2013-2016" /> | ||
<!-- 网址根目录地址 --> | ||
<add key="RootUrl" value="/" /> | ||
<!-- 上传目录 --> | ||
<add key="UploadDir" value="Uploads" /> | ||
<!-- 上传地址 --> | ||
<add key="UploadUrl" value="/Uploads/" /> | ||
<!-- PerformanceEnabled --> | ||
<add key="PerformanceEnabled" value="false" /> | ||
<!-- PerformanceCategoryName --> | ||
<add key="PerformanceCategoryName" value="Performance.EnablePerformanceMonitoring" /> | ||
<!-- MetricUrl --> | ||
<add key="MetricUrl" value="http://127.0.0.1:10082/Metrics/" /> | ||
</WebConfig> | ||
<!---网站配置 end--> | ||
<!---网站配置 start--> | ||
<AdminConfig> | ||
<!--网站名称--> | ||
<add key="WebTitle" value="互联网站内容管理系统" /> | ||
<!-- 网站url地址--> | ||
<add key="WebUrl" value="http://127.0.0.1:10080" /> | ||
<!--ICP备案--> | ||
<add key="ICP" value="ICP备案" /> | ||
<!--统计代码--> | ||
<add key="StatCode" value="统计代码" /> | ||
<!--当前站点web园进程数 --> | ||
<add key="WebGarden" value="1" /> | ||
<!-- 网站版权文字 --> | ||
<add key="Copyright" value="2013-2016" /> | ||
<!-- 网址根目录地址 --> | ||
<add key="RootUrl" value="/" /> | ||
<!-- 上传目录 --> | ||
<add key="UploadDir" value="Uploads" /> | ||
<!-- 上传地址 --> | ||
<add key="UploadUrl" value="/Uploads/" /> | ||
<!-- PerformanceEnabled --> | ||
<add key="PerformanceEnabled" value="false" /> | ||
<!-- PerformanceCategoryName --> | ||
<add key="PerformanceCategoryName" value="Performance.EnablePerformanceMonitoring" /> | ||
<!-- MetricUrl --> | ||
<add key="MetricUrl" value="http://127.0.0.1:10082/Metrics/" /> | ||
</AdminConfig> | ||
<!---网站配置 end--> | ||
<!---数据库配置 start--> | ||
<DbConfig> | ||
<!-- 数据库连接串--> | ||
<add key="DbConnectString" value="Data Source=.;Database=CNTrade; User=sa;Password=123456; Pooling=True; Max Pool Size=100;Connect Timeout=120;MultipleActiveResultSets=True;Max Pool Size=10; Min Pool Size=0;pooling = true;" /> | ||
<!-- 数据库中表的前缀--> | ||
<add key="TablePrefix" value="tb_" /> | ||
<!--数据库类型--> | ||
<add key="DbType" value="SQLServer" /> | ||
<!--Sql语句执行最长时间--> | ||
<add key="CommandTimeout" value="30" /> | ||
</DbConfig> | ||
<!---数据库配置 end--> | ||
<!---Email配置 start--> | ||
<EmailConfig> | ||
<!-- Default from address --> | ||
<add key="DefaultFromAddress" value="[email protected]" /> | ||
<!-- Default from address --> | ||
<add key="DefaultFromDisplayName" value="[email protected]" /> | ||
<!-- SMTP Host name/IP --> | ||
<add key="Host" value="smtp.126.com" /> | ||
<!-- SMTP Port --> | ||
<add key="Port" value="25" /> | ||
<!-- User name to login to SMTP server --> | ||
<add key="UserName" value="[email protected]" /> | ||
<!-- Password to login to SMTP server --> | ||
<add key="Password" value="[email protected]" /> | ||
<!-- Domain name to login to SMTP server --> | ||
<add key="Domain" value="" /> | ||
<!-- Is SSL enabled? --> | ||
<add key="EnableSsl" value="false" /> | ||
<!-- Use default credentials? --> | ||
<add key="UseDefaultCredentials" value="false" /> | ||
</EmailConfig> | ||
<!---Email配置 end--> | ||
</GeneralConfigs> | ||
<!---基础配置信息 end--> | ||
</configuration> |
107 changes: 107 additions & 0 deletions
107
Noob/Web/Noob.Web.Admin.Bootstrap/App_Data/Configs/NLog.config
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,107 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<nlog xmlns="http://www.nlog-project.Admin/schemas/NLog.xsd" | ||
xmlns:xsi="http://www.w3.Admin/2001/XMLSchema-instance" | ||
autoReload="true"> | ||
<!-- | ||
See https://github.com/nLogs/nLogs/wiki/Configuration-file | ||
for information on customizing logging rules and outputs. | ||
--> | ||
<extensions> | ||
<add assembly="Exceptionless.NLog"/> | ||
</extensions> | ||
<targets async="true"> | ||
<target name="consoleFile" xsi:type="ColoredConsole" | ||
layout="${date:format=HH\:mm\:ss}|${level}|${logger}|${callsite}|${message}|${exception:format=ToString}"/> | ||
<target name="file" xsi:type="File" fileName="${basedir}/Logs/NLog/Log/${level}/${shortdate}.log" | ||
layout="${date:format=HH\:mm\:ss}|${level}|${logger}|${callsite}|${message}|${exception:format=ToString}"/> | ||
<target name="RequestFile" xsi:type="File" fileName="${basedir}/Logs/NLog/Request/${level}/${shortdate}.log" | ||
layout="${date:format=HH\:mm\:ss}|${level}|${logger}|${callsite}|${message}|${exception:format=ToString}"/> | ||
<target name="OrmLiteFile" xsi:type="File" fileName="${basedir}/Logs/NLog/OrmLite/${level}/${shortdate}.log" | ||
layout="${date:format=HH\:mm\:ss}|${level}|${logger}|${callsite}|${message}|${exception:format=ToString}"/> | ||
<target name="OwinOAuthFile" xsi:type="File" fileName="${basedir}/Logs/NLog/OwinOAuth/${level}/${shortdate}.log" | ||
layout="${date:format=HH\:mm\:ss}|${level}|${logger}|${callsite}|${message}|${exception:format=ToString}"/> | ||
<target name="WeixinPayFile" xsi:type="File" fileName="${basedir}/Logs/NLog/Pay/WeixinPay/${level}/${shortdate}.log" | ||
layout="${date:format=HH\:mm\:ss}|${level}|${logger}|${message}|${exception:format=ToString}"/> | ||
<target name="AlipayFile" xsi:type="File" fileName="${basedir}/Logs/NLog/Pay/Alipay/${level}/${shortdate}.log" | ||
layout="${date:format=HH\:mm\:ss}|${level}|${logger}|${message}|${exception:format=ToString}"/> | ||
|
||
<!-- 发送日志到exceptionless--> | ||
<!--<target name="Exceptionless" apiKey="IEgac9aghGmUXVJzWOhmyf19q63S0BWC9x6oDAXG" serverUrl="http://localhost:9292" xsi:type="Exceptionless"> | ||
<field name="host" layout="${machinename}" /> | ||
<field name="identity" layout="${identity}" /> | ||
<field name="windows-identity" layout="${windows-identity:userName=True:domain=False}" /> | ||
<field name="process" layout="${processname}" /> | ||
</target>--> | ||
<!-- 发送日志到126邮箱--> | ||
<target xsi:type="Mail" | ||
name="mail" | ||
smtpServer="smtp.126.com" | ||
smtpPort="25" | ||
enableSsl="true" | ||
smtpAuthentication="Basic" | ||
smtpUserName="[email protected]" | ||
smtpPassword="huxinjishubu365" | ||
from="[email protected]" | ||
to="[email protected]" | ||
subject="在线支付错误日志" | ||
addNewLines="true" | ||
layout="${date:format=HH\:mm\:ss}|${level}|${logger}|${message}|${exception:format=ToString}" | ||
/> | ||
<!-- 测试环境 hkmall_app_trunk_test_new http://192.168.16.240:9009/ --> | ||
<!-- | ||
<target xsi:type="Network" | ||
name="udp" | ||
encoding="utf-8" | ||
address="udp://192.168.16.240:2020" | ||
layout="${log4jxmlevent:includeSourceInfo=true:includeCallSite=true:includeMDC=true:appInfo=HKMallNew:includeNDC=true:includeNLogData=true}"> | ||
</target> | ||
--> | ||
|
||
<!-- 测试环境 hkmall_app_trunk_test http://192.168.16.240:9005/ --> | ||
<!-- | ||
<target xsi:type="Network" | ||
name="udp" | ||
encoding="utf-8" | ||
address="udp://192.168.16.240:2020" | ||
layout="${log4jxmlevent:includeSourceInfo=true:includeCallSite=true:includeMDC=true:appInfo=HKMall:includeNDC=true:includeNLogData=true}"> | ||
</target> | ||
--> | ||
<!-- 预生产环境 http://192.168.16.160:9001/ --> | ||
<!-- | ||
<target xsi:type="Network" | ||
name="udp" | ||
encoding="utf-8" | ||
address="udp://192.168.16.240:2020" | ||
layout="${log4jxmlevent:includeSourceInfo=true:includeCallSite=true:includeMDC=true:appInfo=HKMall160:includeNDC=true:includeNLogData=true}"> | ||
</target> | ||
--> | ||
|
||
</targets> | ||
|
||
<rules> | ||
<!--<logger name="*" minlevel="Trace" writeTo="udp"/>--> | ||
<!-- <logger name="*" minlevel="Trace" writeTo="consoleFile"/>--> | ||
<logger name="*" minlevel="Trace" writeTo="file"> | ||
<filters> | ||
<whenContains layout='${logger}' substring='OrmLite' action='Ignore' ignoreCase='true' /> | ||
<whenContains layout='${logger}' substring='RequestHelper' action='Ignore' ignoreCase='true' /> | ||
<whenContains layout='${logger}' substring='Alipay' action='Ignore' ignoreCase='true' /> | ||
<whenContains layout='${logger}' substring='WeixinPay' action='Ignore' ignoreCase='true' /> | ||
</filters> | ||
</logger> | ||
<!-- 发送日志到exceptionless--> | ||
<logger name="*" minlevel="Trace" writeTo="Exceptionless" /> | ||
<!-- | ||
<logger name="*OrmLiteWriteCommandExtensions" minlevel="Trace" writeTo="OrmLiteFile"> | ||
</logger> | ||
<logger name="*OrmLiteReadCommandExtensions" minlevel="Trace" writeTo="OrmLiteFile"> | ||
</logger> | ||
--> | ||
<logger name="*RequestHelper*" minlevel="Trace" writeTo="RequestFile"/> | ||
<logger name="*OrmLite*" minlevel="Trace" writeTo="OrmLiteFile"/> | ||
<logger name="*AuthorizationServerProvider*" minlevel="Trace" writeTo="OwinOAuthFile"/> | ||
<logger name="*WeixinPay*" minlevel="Trace" writeTo="WeixinPayFile"/> | ||
<logger name="*Alipay*" minlevel="Trace" writeTo="AlipayFile"/> | ||
<logger name="*Pay*" minlevel="Error" maxlevel="Error" writeTo="mail"/> | ||
</rules> | ||
</nlog> |
94 changes: 94 additions & 0 deletions
94
Noob/Web/Noob.Web.Admin.Bootstrap/App_Data/Configs/UEditorConfig.json
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,94 @@ | ||
/* 前后端通信相关的配置,注释只允许使用多行方式 */ | ||
{ | ||
/* 上传图片配置项 */ | ||
"imageActionName": "uploadimage", /* 执行上传图片的action名称 */ | ||
"imageFieldName": "upfile", /* 提交的图片表单名称 */ | ||
"imageMaxSize": 2048000, /* 上传大小限制,单位B */ | ||
"imageAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* 上传图片格式显示 */ | ||
"imageCompressEnable": true, /* 是否压缩图片,默认是true */ | ||
"imageCompressBorder": 1600, /* 图片压缩最长边限制 */ | ||
"imageInsertAlign": "none", /* 插入的图片浮动方式 */ | ||
"imageUrlPrefix": "", /* 图片访问路径前缀 */ | ||
"imagePathFormat": "Baidu/ueditor/image/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */ | ||
/* {filename} 会替换成原文件名,配置这项需要注意中文乱码问题 */ | ||
/* {rand:6} 会替换成随机数,后面的数字是随机数的位数 */ | ||
/* {time} 会替换成时间戳 */ | ||
/* {yyyy} 会替换成四位年份 */ | ||
/* {yy} 会替换成两位年份 */ | ||
/* {mm} 会替换成两位月份 */ | ||
/* {dd} 会替换成两位日期 */ | ||
/* {hh} 会替换成两位小时 */ | ||
/* {ii} 会替换成两位分钟 */ | ||
/* {ss} 会替换成两位秒 */ | ||
/* 非法字符 \ : * ? " < > | */ | ||
/* 具请体看线上文档: fex.baidu.com/ueditor/#use-format_upload_filename */ | ||
|
||
/* 涂鸦图片上传配置项 */ | ||
"scrawlActionName": "uploadscrawl", /* 执行上传涂鸦的action名称 */ | ||
"scrawlFieldName": "upfile", /* 提交的图片表单名称 */ | ||
"scrawlPathFormat": "Baidu/ueditor/image/scrawl/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */ | ||
"scrawlMaxSize": 2048000, /* 上传大小限制,单位B */ | ||
"scrawlUrlPrefix": "", /* 图片访问路径前缀 */ | ||
"scrawlInsertAlign": "none", | ||
|
||
/* 截图工具上传 */ | ||
"snapscreenActionName": "uploadimage", /* 执行上传截图的action名称 */ | ||
"snapscreenPathFormat": "Baidu/ueditor/image/snapscreen/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */ | ||
"snapscreenUrlPrefix": "", /* 图片访问路径前缀 */ | ||
"snapscreenInsertAlign": "none", /* 插入的图片浮动方式 */ | ||
|
||
/* 抓取远程图片配置 */ | ||
"catcherLocalDomain": ["127.0.0.1", "localhost", "img.baidu.com"], | ||
"catcherActionName": "catchimage", /* 执行抓取远程图片的action名称 */ | ||
"catcherFieldName": "source", /* 提交的图片列表表单名称 */ | ||
"catcherPathFormat": "Baidu/ueditor/image/catcher/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */ | ||
"catcherUrlPrefix": "", /* 图片访问路径前缀 */ | ||
"catcherMaxSize": 2048000, /* 上传大小限制,单位B */ | ||
"catcherAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* 抓取图片格式显示 */ | ||
|
||
/* 上传视频配置 */ | ||
"videoActionName": "uploadvideo", /* 执行上传视频的action名称 */ | ||
"videoFieldName": "upfile", /* 提交的视频表单名称 */ | ||
"videoPathFormat": "Baidu/ueditor/video/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */ | ||
"videoUrlPrefix": "", /* 视频访问路径前缀 */ | ||
"videoMaxSize": 102400000, /* 上传大小限制,单位B,默认100MB */ | ||
"videoAllowFiles": [ | ||
".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg", | ||
".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid"], /* 上传视频格式显示 */ | ||
|
||
/* 上传文件配置 */ | ||
"fileActionName": "uploadfile", /* controller里,执行上传视频的action名称 */ | ||
"fileFieldName": "upfile", /* 提交的文件表单名称 */ | ||
"filePathFormat": "Baidu/ueditor/file/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */ | ||
"fileUrlPrefix": "", /* 文件访问路径前缀 */ | ||
"fileMaxSize": 51200000, /* 上传大小限制,单位B,默认50MB */ | ||
"fileAllowFiles": [ | ||
".png", ".jpg", ".jpeg", ".gif", ".bmp", | ||
".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg", | ||
".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid", | ||
".rar", ".zip", ".tar", ".gz", ".7z", ".bz2", ".cab", ".iso", | ||
".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".txt", ".md", ".xml" | ||
], /* 上传文件格式显示 */ | ||
|
||
/* 列出指定目录下的图片 */ | ||
"imageManagerActionName": "listimage", /* 执行图片管理的action名称 */ | ||
"imageManagerListPath": "Baidu/ueditor/image", /* 指定要列出图片的目录 */ | ||
"imageManagerListSize": 20, /* 每次列出文件数量 */ | ||
"imageManagerUrlPrefix": "", /* 图片访问路径前缀 */ | ||
"imageManagerInsertAlign": "none", /* 插入的图片浮动方式 */ | ||
"imageManagerAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* 列出的文件类型 */ | ||
|
||
/* 列出指定目录下的文件 */ | ||
"fileManagerActionName": "listfile", /* 执行文件管理的action名称 */ | ||
"fileManagerListPath": "Baidu/ueditor/file", /* 指定要列出文件的目录 */ | ||
"fileManagerUrlPrefix": "", /* 文件访问路径前缀 */ | ||
"fileManagerListSize": 20, /* 每次列出文件数量 */ | ||
"fileManagerAllowFiles": [ | ||
".png", ".jpg", ".jpeg", ".gif", ".bmp", | ||
".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg", | ||
".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid", | ||
".rar", ".zip", ".tar", ".gz", ".7z", ".bz2", ".cab", ".iso", | ||
".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".txt", ".md", ".xml" | ||
] /* 列出的文件类型 */ | ||
|
||
} |
Oops, something went wrong.