1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258
| appname = mindoc
httpaddr="${MINDOC_ADDR}" httpport = "${MINDOC_PORT||8181}" runmode = "${MINDOC_RUN_MODE||prod}" sessionon = true sessionname = mindoc_id copyrequestbody = true enablexsrf = "${MINDOC_ENABLE_XSRF||false}" enable_iframe = "${MINDOC_ENABLE_IFRAME||false}"
baseurl="${MINDOC_BASE_URL}"
highlight_style="${MINDOC_HIGHLIGHT_STYLE||github}"
config_auto_delay="${MINDOC_CONFIG_AUTO_DELAY||20}"
beegoserversessionkey=NY1B$28pms12JM&c sessionprovider="${MINDOC_SESSION_PROVIDER||file}" sessionproviderconfig="${MINDOC_SESSION_PROVIDER_CONFIG||./runtime/session}"
sessiongcmaxlifetime="${MINDOC_SESSION_MAX_LIFETIME||3600}"
timezone = Asia/Shanghai
db_adapter=mysql db_host=mysql db_port=3306 db_database=mindoc_db db_username=root db_password=123456
cover=/static/images/book.jpg
avatar=/static/images/headimgurl.jpg
token_size=12
upload_file_ext=*
upload_file_size=10GB
enable_mail="${MINDOC_ENABLE_MAIL||false}"
mail_number="${MINDOC_MAIL_NUMBER||5}"
smtp_user_name="${MINDOC_SMTP_USER_NAME||admin@iminho.me}"
smtp_host="${MINDOC_SMTP_HOST||smtp.163.com}""
smtp_password="${MINDOC_SMTP_PASSWORD}"
smtp_port="${MINDOC_SMTP_PORT||25}""
form_user_name="${MINDOC_FORM_USERNAME||admin@iminho.me}"
mail_expired="${MINDOC_EXPIRED||30}"
secure="${MINDOC_MAIL_SECURE||LOGIN}"
enable_export="${MINDOC_ENABLE_EXPORT||false}"
export_process_num="${MINDOC_EXPORT_PROCESS_NUM||1}"
export_limit_num="${MINDOC_EXPORT_LIMIT_NUM||5}"
export_queue_limit_num="${MINDOC_EXPORT_QUEUE_LIMIT_NUM||100}"
export_output_path="${MINDOC_EXPORT_OUTPUT_PATH||./runtime/cache}"
baidumapkey=
ldap_enable=false
ldap_host=ad.example.com
ldap_port=3268
ldap_account=sAMAccountName
ldap_mail=mail
ldap_base=DC=example,DC=com
ldap_user=CN=ldap helper,OU=example.com,DC=example,DC=com
ldap_password=superSecret
ldap_user_role=2
ldap_filter=objectClass=posixAccount
http_login_url=
http_login_secret=hzsp*THJUqwbCU%s
cdn="${MINDOC_CDN_URL}" cdnjs="${MINDOC_CDN_JS_URL}" cdncss="${MINDOC_CDN_CSS_URL}" cdnimg="${MINDOC_CDN_IMG_URL}"
cache="${MINDOC_CACHE||false}"
cache_provider="${MINDOC_CACHE_PROVIDER||file}"
cache_memory_interval="${MINDOC_CACHE_MEMORY_INTERVAL||120}"
cache_file_path="${MINDOC_CACHE_FILE_PATH||./runtime/cache/}"
cache_file_suffix="${MINDOC_CACHE_FILE_SUFFIX||.bin}"
cache_file_dir_level="${MINDOC_CACHE_FILE_DIR_LEVEL||2}"
cache_file_expiry="${MINDOC_CACHE_FILE_EXPIRY||3600}"
cache_memcache_host="${MINDOC_CACHE_MEMCACHE_HOST||127.0.0.1:11211}"
cache_redis_host="${MINDOC_CACHE_REDIS_HOST||127.0.0.1:6379}"
cache_redis_db="${MINDOC_CACHE_REDIS_DB||0}"
cache_redis_password="${MINDOC_CACHE_REDIS_PASSWORD}"
cache_redis_prefix="${MINDOC_CACHE_REDIS_PREFIX||mindoc::cache}"
log_path="${MINDOC_LOG_PATH||./runtime/logs}"
log_maxlines="${MINDOC_LOG_MAX_LINES||1000000}"
log_maxsize="${MINDOC_LOG_MAX_SIZE}"
log_daily="${MINDOC_LOG_DAILY||true}"
log_maxdays="${MINDOC_LOG_MAX_DAYS||30}"
log_level="${MINDOC_LOG_LEVEL||Alert}"
log_is_async="${MINDOC_LOG_IS_ASYNC||TRUE}"
dingtalk_corpid="${MINDOC_DINGTALK_CORPID}"
dingtalk_app_key="${MINDOC_DINGTALK_APPKEY}"
dingtalk_app_secret="${MINDOC_DINGTALK_APPSECRET}"
dingtalk_tmp_reader="${MINDOC_DINGTALK_READER}"
dingtalk_qr_key="${MINDOC_DINGTALK_QRKEY}"
dingtalk_qr_secret="${MINDOC_DINGTALK_QRSECRET}"
workweixin_corpid="${MINDOC_WORKWEIXIN_CORPID}"
workweixin_agentid="${MINDOC_WORKWEIXIN_AGENTID}"
workweixin_secret="${MINDOC_WORKWEIXIN_SECRET}"
workweixin_contact_secret="${MINDOC_WORKWEIXIN_CONTACT_SECRET}"
default_lang="zh-cn"
|