Online.html 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355
  1. <!DOCTYPE HTML>
  2. <html lang="zh-hans" >
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  6. <title>项目上线 · 梦想家内容管理系统(Dreamer CMS)</title>
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  8. <meta name="description" content="">
  9. <meta name="generator" content="GitBook 3.2.3">
  10. <meta name="author" content="王俊南">
  11. <link rel="stylesheet" href="../gitbook/style.css">
  12. <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
  13. <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
  14. <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
  15. <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
  16. <meta name="HandheldFriendly" content="true"/>
  17. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  18. <meta name="apple-mobile-web-app-capable" content="yes">
  19. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  20. <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
  21. <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
  22. <link rel="prev" href="Packaging.html" />
  23. <link rel="shortcut icon" href="./source/images/favicon.ico" type="image/x-icon">
  24. <link rel="apple-touch-icon-precomposed" sizes="152x152" href="./source/images/favicon.png">
  25. </head>
  26. <body>
  27. <div class="book">
  28. <div class="book-summary">
  29. <div id="book-search-input" role="search">
  30. <input type="text" placeholder="输入并搜索" />
  31. </div>
  32. <nav role="navigation">
  33. <ul class="summary">
  34. <li>
  35. <a href="http://www.iteachyou.cc" target="_blank" class="custom-link">I Teach You,我教你!</a>
  36. </li>
  37. <li>
  38. <a href="https://gitee.com/iteachyou/dreamer_cms" target="_blank" class="custom-link">Dreamer CMS(Gitee)</a>
  39. </li>
  40. <li>
  41. <a href="https://github.com/iteachyou-wjn/dreamer_cms" target="_blank" class="custom-link">Dreamer CMS(Github)</a>
  42. </li>
  43. <li class="divider"></li>
  44. <li class="chapter " data-level="1.1" data-path="../">
  45. <a href="../">
  46. 封面
  47. </a>
  48. </li>
  49. <li class="chapter " data-level="1.2" data-path="../COPYRIGHT.html">
  50. <a href="../COPYRIGHT.html">
  51. 版权
  52. </a>
  53. </li>
  54. <li class="divider"></li>
  55. <li class="chapter " data-level="2.1" >
  56. <span>
  57. 前言
  58. </span>
  59. <ul class="articles">
  60. <li class="chapter " data-level="2.1.1" data-path="../preface/">
  61. <a href="../preface/">
  62. 简介
  63. </a>
  64. </li>
  65. <li class="chapter " data-level="2.1.2" data-path="../preface/Topic.html">
  66. <a href="../preface/Topic.html">
  67. 主题
  68. </a>
  69. </li>
  70. <li class="chapter " data-level="2.1.3" data-path="../preface/Publish.html">
  71. <a href="../preface/Publish.html">
  72. 发行方法
  73. </a>
  74. </li>
  75. <li class="chapter " data-level="2.1.4" data-path="../preface/Online.html">
  76. <a href="../preface/Online.html">
  77. 在线手册
  78. </a>
  79. </li>
  80. <li class="chapter " data-level="2.1.5" data-path="../preface/Last.html">
  81. <a href="../preface/Last.html">
  82. 最后
  83. </a>
  84. </li>
  85. </ul>
  86. </li>
  87. <li class="divider"></li>
  88. <li class="chapter " data-level="3.1" data-path="../chapter01/">
  89. <a href="../chapter01/">
  90. 第一章 模板设计师要求
  91. </a>
  92. <ul class="articles">
  93. <li class="chapter " data-level="3.1.1" data-path="../chapter01/Designer.html">
  94. <a href="../chapter01/Designer.html">
  95. 设计师
  96. </a>
  97. </li>
  98. <li class="chapter " data-level="3.1.2" data-path="../chapter01/Developer.html">
  99. <a href="../chapter01/Developer.html">
  100. 开发者
  101. </a>
  102. </li>
  103. </ul>
  104. </li>
  105. <li class="divider"></li>
  106. <li class="chapter " data-level="4.1" data-path="../chapter02/">
  107. <a href="../chapter02/">
  108. 第二章 模板制作流程
  109. </a>
  110. </li>
  111. <li class="divider"></li>
  112. <li class="chapter " data-level="5.1" >
  113. <span>
  114. 第三章 模板文件及目录结构
  115. </span>
  116. <ul class="articles">
  117. <li class="chapter " data-level="5.1.1" data-path="../chapter03/">
  118. <a href="../chapter03/">
  119. 模版目录
  120. </a>
  121. </li>
  122. <li class="chapter " data-level="5.1.2" data-path="../chapter03/Description.html">
  123. <a href="../chapter03/Description.html">
  124. 模板文件与功能说明
  125. </a>
  126. </li>
  127. <li class="chapter " data-level="5.1.3" data-path="../chapter03/DesignAndUse.html">
  128. <a href="../chapter03/DesignAndUse.html">
  129. 概念,设计和使用模板
  130. </a>
  131. </li>
  132. <li class="chapter " data-level="5.1.4" data-path="../chapter03/NamingRules.html">
  133. <a href="../chapter03/NamingRules.html">
  134. 命名规则
  135. </a>
  136. </li>
  137. <li class="chapter " data-level="5.1.5" data-path="../chapter03/Other.html">
  138. <a href="../chapter03/Other.html">
  139. 其它模板说明
  140. </a>
  141. </li>
  142. </ul>
  143. </li>
  144. <li class="divider"></li>
  145. <li class="chapter " data-level="6.1" data-path="../chapter04/">
  146. <a href="../chapter04/">
  147. 第四章 模板引擎介绍
  148. </a>
  149. <ul class="articles">
  150. <li class="chapter " data-level="6.1.1" data-path="../chapter04/CoreDoc.html">
  151. <a href="../chapter04/CoreDoc.html">
  152. 核心文件
  153. </a>
  154. </li>
  155. <li class="chapter " data-level="6.1.2" data-path="../chapter04/Grammar.html">
  156. <a href="../chapter04/Grammar.html">
  157. 模板语法
  158. </a>
  159. </li>
  160. <li class="chapter " data-level="6.1.3" data-path="../chapter04/LabelCategory.html">
  161. <a href="../chapter04/LabelCategory.html">
  162. 标签分类
  163. </a>
  164. </li>
  165. </ul>
  166. </li>
  167. <li class="divider"></li>
  168. <li class="chapter " data-level="7.1" >
  169. <span>
  170. 第五章 标签参考
  171. </span>
  172. <ul class="articles">
  173. <li class="chapter " data-level="7.1.1" >
  174. <span>
  175. ▶全局标签
  176. </span>
  177. </li>
  178. <li class="chapter " data-level="7.1.2" data-path="../chapter05/GlobalLabel.html">
  179. <a href="../chapter05/GlobalLabel.html">
  180. Global全局配置标签
  181. </a>
  182. </li>
  183. <li class="chapter " data-level="7.1.3" data-path="../chapter05/VariableLabel.html">
  184. <a href="../chapter05/VariableLabel.html">
  185. Variable全局变量标签
  186. </a>
  187. </li>
  188. <li class="chapter " data-level="7.1.4" data-path="../chapter05/TemplateLabel.html">
  189. <a href="../chapter05/TemplateLabel.html">
  190. Template模版路径标签
  191. </a>
  192. </li>
  193. <li class="chapter " data-level="7.1.5" data-path="../chapter05/IncludeLabel.html">
  194. <a href="../chapter05/IncludeLabel.html">
  195. Include引入文件标签
  196. </a>
  197. </li>
  198. <li class="chapter " data-level="7.1.6" data-path="../chapter05/TypeLabel.html">
  199. <a href="../chapter05/TypeLabel.html">
  200. Type栏目调用标签
  201. </a>
  202. </li>
  203. <li class="chapter " data-level="7.1.7" data-path="../chapter05/ChannelLabel.html">
  204. <a href="../chapter05/ChannelLabel.html">
  205. Channel频道列表标签
  206. </a>
  207. </li>
  208. <li class="chapter " data-level="7.1.8" data-path="../chapter05/ListLabel.html">
  209. <a href="../chapter05/ListLabel.html">
  210. List文章列表标签
  211. </a>
  212. </li>
  213. <li class="chapter " data-level="7.1.9" data-path="../chapter05/CategoryArtListLabel.html">
  214. <a href="../chapter05/CategoryArtListLabel.html">
  215. CategoryArtListLabel栏目内容列表标签
  216. </a>
  217. </li>
  218. <li class="chapter " data-level="7.1.10" data-path="../chapter05/TagLabel.html">
  219. <a href="../chapter05/TagLabel.html">
  220. TagLabel标签列表标签
  221. </a>
  222. </li>
  223. <li class="chapter " data-level="7.1.11" data-path="../chapter05/TreeLabel.html">
  224. <a href="../chapter05/TreeLabel.html">
  225. TreeLabel栏目树标签
  226. </a>
  227. </li>
  228. <li class="chapter " data-level="7.1.12" data-path="../chapter05/AttachmentLabel.html">
  229. <a href="../chapter05/AttachmentLabel.html">
  230. AttachmentLabel附件标签
  231. </a>
  232. </li>
  233. <li class="chapter " data-level="7.1.13" data-path="../chapter05/SqlLabel.html">
  234. <a href="../chapter05/SqlLabel.html">
  235. SqlLabel SQL标签
  236. </a>
  237. </li>
  238. <li class="chapter " data-level="7.1.14" data-path="../chapter05/IfLabel.html">
  239. <a href="../chapter05/IfLabel.html">
  240. IfLabel判断标签
  241. </a>
  242. </li>
  243. <li class="chapter " data-level="7.1.15" >
  244. <span>
  245. ▶分页标签
  246. </span>
  247. </li>
  248. <li class="chapter " data-level="7.1.16" data-path="../chapter05/CategoryLabel.html">
  249. <a href="../chapter05/CategoryLabel.html">
  250. Category分页栏目标签
  251. </a>
  252. </li>
  253. <li class="chapter " data-level="7.1.17" data-path="../chapter05/TopCategoryLabel.html">
  254. <a href="../chapter05/TopCategoryLabel.html">
  255. TopCategory分页顶级栏目标签
  256. </a>
  257. </li>
  258. <li class="chapter " data-level="7.1.18" data-path="../chapter05/LocationLabel.html">
  259. <a href="../chapter05/LocationLabel.html">
  260. Location当前位置标签
  261. </a>
  262. </li>
  263. <li class="chapter " data-level="7.1.19" >
  264. <span>
  265. ▶列表标签
  266. </span>
  267. </li>
  268. <li class="chapter " data-level="7.1.20" data-path="../chapter05/PageListLabel.html">
  269. <a href="../chapter05/PageListLabel.html">
  270. PageList文章分页标签
  271. </a>
  272. </li>
  273. <li class="chapter " data-level="7.1.21" data-path="../chapter05/PaginationLabel.html">
  274. <a href="../chapter05/PaginationLabel.html">
  275. Pagination显示分页标签
  276. </a>
  277. </li>
  278. <li class="chapter " data-level="7.1.22" >
  279. <span>
  280. ▶内容标签
  281. </span>
  282. </li>
  283. <li class="chapter " data-level="7.1.23" data-path="../chapter05/ArticleLabel.html">
  284. <a href="../chapter05/ArticleLabel.html">
  285. Article文章页标签
  286. </a>
  287. </li>
  288. <li class="chapter " data-level="7.1.24" data-path="../chapter05/PrevNextLabel.html">
  289. <a href="../chapter05/PrevNextLabel.html">
  290. PrevNext上一篇、下一篇标签
  291. </a>
  292. </li>
  293. </ul>
  294. </li>
  295. <li class="chapter " data-level="7.2" data-path="../chapter06/DataBase.html">
  296. <a href="../chapter06/DataBase.html">
  297. 第六章 数据库
  298. </a>
  299. </li>
  300. <li class="chapter " data-level="7.3" >
  301. <span>
  302. 第七章 模板扩展
  303. </span>
  304. <ul class="articles">
  305. <li class="chapter " data-level="7.3.1" data-path="../chapter07/Message.html">
  306. <a href="../chapter07/Message.html">
  307. 留言投稿
  308. </a>
  309. </li>
  310. <li class="chapter " data-level="7.3.2" data-path="../chapter07/Search.html">
  311. <a href="../chapter07/Search.html">
  312. 网站搜索
  313. </a>
  314. </li>
  315. <li class="chapter " data-level="7.3.3" data-path="../chapter07/DefineLabel.html">
  316. <a href="../chapter07/DefineLabel.html">
  317. 定义标签
  318. </a>
  319. </li>
  320. <li class="chapter " data-level="7.3.4" data-path="../chapter07/Regexp.html">
  321. <a href="../chapter07/Regexp.html">
  322. 正则工具类
  323. </a>
  324. </li>
  325. </ul>
  326. </li>
  327. <li class="chapter " data-level="7.4" >
  328. <span>
  329. 第八章 部署上线
  330. </span>
  331. <ul class="articles">
  332. <li class="chapter " data-level="7.4.1" data-path="Environment.html">
  333. <a href="Environment.html">
  334. 环境准备
  335. </a>
  336. </li>
  337. <li class="chapter " data-level="7.4.2" data-path="Packaging.html">
  338. <a href="Packaging.html">
  339. 应用打包
  340. </a>
  341. </li>
  342. <li class="chapter active" data-level="7.4.3" data-path="Online.html">
  343. <a href="Online.html">
  344. 项目上线
  345. </a>
  346. </li>
  347. </ul>
  348. </li>
  349. <li class="chapter " data-level="7.5" >
  350. <span>
  351. 第九章 常见问题
  352. </span>
  353. <ul class="articles">
  354. <li class="chapter " data-level="7.5.1" data-path="../chapter09/Business.html">
  355. <a href="../chapter09/Business.html">
  356. 商业授权
  357. </a>
  358. </li>
  359. <li class="chapter " data-level="7.5.2" data-path="../chapter09/ResourceDir.html">
  360. <a href="../chapter09/ResourceDir.html">
  361. 资源目录
  362. </a>
  363. </li>
  364. <li class="chapter " data-level="7.5.3" data-path="../chapter09/RichTextEditor.html">
  365. <a href="../chapter09/RichTextEditor.html">
  366. 富文本编辑器
  367. </a>
  368. </li>
  369. <li class="chapter " data-level="7.5.4" data-path="../chapter09/NavActive.html">
  370. <a href="../chapter09/NavActive.html">
  371. 导航Active
  372. </a>
  373. </li>
  374. <li class="chapter " data-level="7.5.5" data-path="../chapter09/CategoryPage.html">
  375. <a href="../chapter09/CategoryPage.html">
  376. 栏目分页
  377. </a>
  378. </li>
  379. <li class="chapter " data-level="7.5.6" data-path="../chapter09/CategoryFilter.html">
  380. <a href="../chapter09/CategoryFilter.html">
  381. 多级栏目筛选
  382. </a>
  383. </li>
  384. <li class="chapter " data-level="7.5.7" data-path="../chapter09/MutipleLanguage.html">
  385. <a href="../chapter09/MutipleLanguage.html">
  386. 多语言网站
  387. </a>
  388. </li>
  389. <li class="chapter " data-level="7.5.8" data-path="../chapter09/UploadContrl.html">
  390. <a href="../chapter09/UploadContrl.html">
  391. 上传大小控制
  392. </a>
  393. </li>
  394. <li class="chapter " data-level="7.5.9" data-path="../chapter09/ResourceNotFound.html">
  395. <a href="../chapter09/ResourceNotFound.html">
  396. 上线图片404
  397. </a>
  398. </li>
  399. <li class="chapter " data-level="7.5.10" data-path="../chapter09/Favicon.html">
  400. <a href="../chapter09/Favicon.html">
  401. 站点Favicon
  402. </a>
  403. </li>
  404. </ul>
  405. </li>
  406. <li class="chapter " data-level="7.6" >
  407. <span>
  408. 第十章 关于捐赠
  409. </span>
  410. <ul class="articles">
  411. <li class="chapter " data-level="7.6.1" data-path="../chapter10/DonationList.html">
  412. <a href="../chapter10/DonationList.html">
  413. 授权和捐赠
  414. </a>
  415. </li>
  416. </ul>
  417. </li>
  418. <li class="divider"></li>
  419. <li>
  420. <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
  421. 本书使用 GitBook 发布
  422. </a>
  423. </li>
  424. </ul>
  425. </nav>
  426. </div>
  427. <div class="book-body">
  428. <div class="body-inner">
  429. <div class="book-header" role="navigation">
  430. <!-- Title -->
  431. <h1>
  432. <i class="fa fa-circle-o-notch fa-spin"></i>
  433. <a href=".." >项目上线</a>
  434. </h1>
  435. </div>
  436. <div class="page-wrapper" tabindex="-1" role="main">
  437. <div class="page-inner">
  438. <div id="book-search-results">
  439. <div class="search-noresults">
  440. <section class="normal markdown-section">
  441. <div style="display: flex;">
  442. <img src="https://oss.iteachyou.cc/logo.png" height="30">
  443. <div style="margin-left: 5px; font-size: 30px; line-height: 30px; font-weight: bold;">&#x68A6;&#x60F3;&#x5BB6;&#x5185;&#x5BB9;&#x7BA1;&#x7406;&#x7CFB;&#x7EDF;</div>
  444. </div>
  445. <hr>
  446. <h3 id="&#x5E94;&#x7528;&#x6253;&#x5305;"><a name="&#x5E94;&#x7528;&#x6253;&#x5305;" class="plugin-anchor" href="#&#x5E94;&#x7528;&#x6253;&#x5305;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5E94;&#x7528;&#x6253;&#x5305;</h3>
  447. <ol>
  448. <li><p>&#x542F;&#x52A8;&#x5E94;&#x7528;</p>
  449. <pre><code class="lang-shell">cd /opt/programs/
  450. # &#x666E;&#x901A;&#x6253;&#x5305;&#xFF0C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x6839;&#x636E;&#x81EA;&#x5DF1;&#x5B9E;&#x9645;&#x60C5;&#x51B5;&#x6765;&#x9009;&#x62E9;
  451. nohup java -jar dreamer-cms.jar &gt; dreamer-cms.log &amp;
  452. # &#x5C06;jar&#x5305;&#x5355;&#x72EC;&#x6253;&#x5230;&#x76EE;&#x5F55;&#x4E2D;
  453. # nohup java -Dloader.path=libs/ -jar dreamer-cms.jar &gt; dreamer-cms.log &amp;
  454. </code></pre>
  455. </li>
  456. <li><p>&#x914D;&#x7F6E;Nginx</p>
  457. <ol>
  458. <li><p>&#x666E;&#x901A;&#x65B9;&#x5F0F;&#xFF08;Http&#xFF09;</p>
  459. <pre><code class="lang-shell">server {
  460. listen 80;
  461. server_name www.iteachyou.cc iteachyou.cc;
  462. location / {
  463. add_header X-Via $upstream_addr;
  464. proxy_ignore_client_abort on;
  465. proxy_set_header Host $http_host;
  466. proxy_set_header Cookie $http_cookie;
  467. proxy_set_header X-Real-IP $remote_addr;
  468. proxy_set_header X-Forwarded-For $http_x_forwarded_for;
  469. proxy_set_header X-Forwarded-Proto $scheme;
  470. proxy_pass http://127.0.0.1:8888;
  471. proxy_set_header Upgrade $http_upgrade;
  472. proxy_set_header Connection &quot;upgrade&quot;;
  473. }
  474. }
  475. </code></pre>
  476. </li>
  477. <li><p>SSL&#x65B9;&#x5F0F;&#xFF08;Https&#xFF09;</p>
  478. <pre><code class="lang-shell">server {
  479. listen 80;
  480. server_name www.iteachyou.cc iteachyou.cc;
  481. proxy_set_header X-Real-IP $remote_addr;
  482. rewrite ^(.*)$ https://$host$1 permanent; # &#x5F3A;&#x5236;http&#x8FDB;&#x5165;https
  483. error_page 403 404 /update.html;
  484. location = /update.html {
  485. root html;
  486. }
  487. # redirect server error pages to the static page /50x.html
  488. error_page 500 502 503 504 /50x.html;
  489. location = /50x.html {
  490. root html;
  491. }
  492. }
  493. server {
  494. #SSL &#x8BBF;&#x95EE;&#x7AEF;&#x53E3;&#x53F7;&#x4E3A; 443
  495. listen 443 ssl;
  496. #&#x586B;&#x5199;&#x7ED1;&#x5B9A;&#x8BC1;&#x4E66;&#x7684;&#x57DF;&#x540D;
  497. server_name www.iteachyou.cc iteachyou.cc;
  498. #&#x8BC1;&#x4E66;&#x6587;&#x4EF6;&#x540D;&#x79F0;&#xFF08;&#x4FEE;&#x6539;&#x4E3A;&#x81EA;&#x5DF1;&#x7684;&#x8DEF;&#x5F84;&#xFF09;
  499. ssl_certificate /opt/ssl/iteachyou.cc/1_iteachyou.cc_bundle.crt;
  500. #&#x79C1;&#x94A5;&#x6587;&#x4EF6;&#x540D;&#x79F0;&#xFF08;&#x4FEE;&#x6539;&#x4E3A;&#x81EA;&#x5DF1;&#x7684;&#x8DEF;&#x5F84;&#xFF09;
  501. ssl_certificate_key /opt/ssl/iteachyou.cc/2_iteachyou.cc.key;
  502. ssl_session_timeout 5m;
  503. #&#x8BF7;&#x6309;&#x7167;&#x8FD9;&#x4E2A;&#x534F;&#x8BAE;&#x914D;&#x7F6E;
  504. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  505. #&#x8BF7;&#x6309;&#x7167;&#x8FD9;&#x4E2A;&#x5957;&#x4EF6;&#x914D;&#x7F6E;&#xFF0C;&#x914D;&#x7F6E;&#x52A0;&#x5BC6;&#x5957;&#x4EF6;&#xFF0C;&#x5199;&#x6CD5;&#x9075;&#x5FAA; openssl &#x6807;&#x51C6;&#x3002;
  506. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
  507. ssl_prefer_server_ciphers on;
  508. location / {
  509. add_header X-Via $upstream_addr;
  510. proxy_ignore_client_abort on;
  511. proxy_set_header Host $http_host;
  512. proxy_set_header Cookie $http_cookie;
  513. proxy_set_header X-Real-IP $remote_addr;
  514. proxy_set_header X-Forwarded-For $http_x_forwarded_for;
  515. proxy_set_header X-Forwarded-Proto $scheme;
  516. proxy_pass http://127.0.0.1:8888;
  517. proxy_redirect ~^http://([^:]+)(:\d+)?(.*)$ https://$1$3;
  518. }
  519. }
  520. </code></pre>
  521. </li>
  522. <li>&#x914D;&#x7F6E;Websocket&#xFF0C;&#x5728;nginx.conf&#x4E2D;http&#x6A21;&#x5757;&#x4E2D;<pre><code class="lang-shell">#websocket
  523. map $http_upgrade $connection_upgrade {
  524. default upgrade;
  525. &apos;&apos; close;
  526. }
  527. </code></pre>
  528. </li>
  529. <li>&#x914D;&#x7F6E;Gzip&#x538B;&#x7F29;&#xFF0C;&#x5728;nginx.conf&#x4E2D;http&#x6A21;&#x5757;&#x4E2D;<pre><code class="lang-shell"># &#x5F00;&#x542F;gzip
  530. gzip on;
  531. # &#x542F;&#x7528;gzip&#x538B;&#x7F29;&#x7684;&#x6700;&#x5C0F;&#x6587;&#x4EF6;&#xFF1B;&#x5C0F;&#x4E8E;&#x8BBE;&#x7F6E;&#x503C;&#x7684;&#x6587;&#x4EF6;&#x5C06;&#x4E0D;&#x4F1A;&#x88AB;&#x538B;&#x7F29;
  532. gzip_min_length 1k;
  533. # gzip &#x538B;&#x7F29;&#x7EA7;&#x522B; 1-10
  534. gzip_comp_level 4;
  535. # &#x8FDB;&#x884C;&#x538B;&#x7F29;&#x7684;&#x6587;&#x4EF6;&#x7C7B;&#x578B;&#x3002;
  536. gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
  537. # &#x662F;&#x5426;&#x5728;http header&#x4E2D;&#x6DFB;&#x52A0;Vary: Accept-Encoding&#xFF0C;&#x5EFA;&#x8BAE;&#x5F00;&#x542F;
  538. gzip_vary on;
  539. </code></pre>
  540. </li>
  541. </ol>
  542. </li>
  543. <li><p>&#x4E0A;&#x7EBF;&#x540E;&#x914D;&#x7F6E;
  544. &#x9879;&#x76EE;&#x901A;&#x8FC7;&#x4EE5;&#x4E0A;&#x6B65;&#x9AA4;&#xFF0C;&#x5219;&#x53EF;&#x4EE5;&#x6B63;&#x5E38;&#x901A;&#x8FC7;&#x57DF;&#x540D;&#x6216;IP&#x8BBF;&#x95EE;&#x540E;&#x53F0;&#xFF0C;&#x4F46;&#x662F;&#x540E;&#x53F0;&#x4E2D;&#x8FD8;&#x9700;&#x8981;&#x914D;&#x7F6E;&#x4E00;&#x4E9B;&#x7F51;&#x5740;&#x3002;&#x7F51;&#x7AD9;&#x914D;&#x7F6E;=&gt;&#x7F51;&#x7AD9;&#x5730;&#x5740;&#x9700;&#x8981;&#x4FEE;&#x6539;&#x4E3A;&#x6B63;&#x5F0F;&#x7684;&#x57DF;&#x540D;&#x6216;IP&#x5730;&#x5740;&#xFF0C;&#x5982;&#xFF1A;<a href="https://www.iteachyou.cc/" target="_blank">https://www.iteachyou.cc/</a> &#x6216; <a href="http://192.168.1.10:8888/" target="_blank">http://192.168.1.10:8888/</a></p>
  545. </li>
  546. </ol>
  547. </section>
  548. </div>
  549. <div class="search-results">
  550. <div class="has-results">
  551. <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
  552. <ul class="search-results-list"></ul>
  553. </div>
  554. <div class="no-results">
  555. <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
  556. </div>
  557. </div>
  558. </div>
  559. </div>
  560. </div>
  561. </div>
  562. <a href="Packaging.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 应用打包">
  563. <i class="fa fa-angle-left"></i>
  564. </a>
  565. </div>
  566. <script>
  567. var gitbook = gitbook || [];
  568. gitbook.push(function() {
  569. gitbook.page.hasChanged({"page":{"title":"项目上线","level":"7.4.3","depth":2,"next":{"title":"第九章 常见问题","level":"7.5","depth":1,"ref":"","articles":[{"title":"商业授权","level":"7.5.1","depth":2,"path":"chapter09/Business.md","ref":"chapter09/Business.md","articles":[]},{"title":"资源目录","level":"7.5.2","depth":2,"path":"chapter09/ResourceDir.md","ref":"chapter09/ResourceDir.md","articles":[]},{"title":"富文本编辑器","level":"7.5.3","depth":2,"path":"chapter09/RichTextEditor.md","ref":"chapter09/RichTextEditor.md","articles":[]},{"title":"导航Active","level":"7.5.4","depth":2,"path":"chapter09/NavActive.md","ref":"chapter09/NavActive.md","articles":[]},{"title":"栏目分页","level":"7.5.5","depth":2,"path":"chapter09/CategoryPage.md","ref":"chapter09/CategoryPage.md","articles":[]},{"title":"多级栏目筛选","level":"7.5.6","depth":2,"path":"chapter09/CategoryFilter.md","ref":"chapter09/CategoryFilter.md","articles":[]},{"title":"多语言网站","level":"7.5.7","depth":2,"path":"chapter09/MutipleLanguage.md","ref":"chapter09/MutipleLanguage.md","articles":[]},{"title":"上传大小控制","level":"7.5.8","depth":2,"path":"chapter09/UploadContrl.md","ref":"chapter09/UploadContrl.md","articles":[]},{"title":"上线图片404","level":"7.5.9","depth":2,"path":"chapter09/ResourceNotFound.md","ref":"chapter09/ResourceNotFound.md","articles":[]},{"title":"站点Favicon","level":"7.5.10","depth":2,"path":"chapter09/Favicon.md","ref":"chapter09/Favicon.md","articles":[]}]},"previous":{"title":"应用打包","level":"7.4.2","depth":2,"path":"chapter08/Packaging.md","ref":"chapter08/Packaging.md","articles":[]},"dir":"ltr"},"config":{"plugins":["anchors","favicon-absolute","highlight"],"styles":{"website":"./styles/website.css"},"pluginsConfig":{"favicon-absolute":{"appleTouchIconMore":{},"appleTouchIconPrecomposed152":"./source/images/favicon.png","appleTouchIconPrecomposedMore":{},"favicon":"./source/images/favicon.ico"},"anchors":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"王俊南","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"梦想家内容管理系统(Dreamer CMS)","language":"zh-hans","links":{"sidebar":{"I Teach You,我教你!":"http://www.iteachyou.cc","Dreamer CMS(Gitee)":"https://gitee.com/iteachyou/dreamer_cms","Dreamer CMS(Github)":"https://github.com/iteachyou-wjn/dreamer_cms"}},"gitbook":"3.2.3","description":"Dreamer CMS,梦想家内容管理系统官方使用文档"},"file":{"path":"chapter08/Online.md","mtime":"2023-09-28T07:00:56.535Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-05-14T01:34:04.807Z"},"basePath":"..","book":{"language":""}});
  570. });
  571. </script>
  572. </div>
  573. <script src="../gitbook/gitbook.js"></script>
  574. <script src="../gitbook/theme.js"></script>
  575. <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
  576. <script src="../gitbook/gitbook-plugin-search/search.js"></script>
  577. <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
  578. <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
  579. <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
  580. <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
  581. </body>
  582. </html>