代码拉取完成,页面将自动刷新
同步操作将从 an-tao/drogon 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/* This is a JSON format configuration file
*/
{
//ssl:the global ssl files setting
"ssl": {
"cert": "../../trantor/trantor/tests/server.pem",
"key": "../../trantor/trantor/tests/server.pem"
},
"listeners": [
{
//address:ip address,0.0.0.0 by default
"address": "0.0.0.0",
//port:port number
"port": 80,
//https:if use https for security,false by default
"https": false
},
{
"address": "0.0.0.0",
"port": 443,
"https": true,
//cert,key:cert file path and key file path,empty by default,
//if empty,use global setting
"cert": "",
"key": ""
}
],
"app": {
//threads_num:num of threads,1 by default
"threads_num": 16,
//enable_session:false by default
"enable_session": false,
"session_timeout": 0,
//document_root:Root path of HTTP document,defaut path is ./
"document_root":"./",
/* file_types:
* HTTP download file types,The file types supported by drogon
* by default are "html", "js", "css", "xml", "xsl", "txt", "svg",
* "ttf", "otf", "woff2", "woff" , "eot", "png", "jpg", "jpeg",
* "gif", "bmp", "ico", "icns", etc. */
"file_types":["gif","png","jpg","js","css","html","ico","swf","xap","apk","cur","xml"],
//max_connections:max connections number,100000 by default
"max_connections":100000,
//max_connections_per_ip:max connections number per clinet,0 by default which means no limit
"max_connections_per_ip":0,
//Load_dynamic_views: false by default, when set to true, drogon will
//compile and load dynamically "CSP View Files" in directories defined
//by "dynamic_views_path"
//"load_dynamic_views":true,
//dynamic_views_path: if the path isn't prefixed with / or ./,
//it will be relative path of document_root path
//"dynamic_views_path":["./views"],
//log:set log output,drogon output logs to stdout by default
"log":{
//log_path:log file path,empty by default,in which case,log will output to the stdout
"log_path":"./",
//logfile_base_name:log file base name,empty by default which means drogon will name logfile as
//drogon.log ...
"logfile_base_name":"",
//log_size_limit:100000000 bytes by default,
//When the log file size reaches "log_size_limit", the log file will be switched.
"log_size_limit":100000000,
//log_level:"DEBUG" by default,options:"TRACE","DEBUG","INFO","WARN"
//The TRACE level is only valid when built in DEBUG mode.
"log_level":"DEBUG"
},
//run_as_daemon:false by default
"run_as_daemon":false,
//relaunch_on_error:false by default,if true,the program will be restart by parent after exit;
"relaunch_on_error":false,
//use_sendfile:true by default,if ture,the program will
//use sendfile() system-call to send static file to client;
"use_sendfile":true
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。