{"id":1909,"date":"2023-03-31T21:39:39","date_gmt":"2023-03-31T13:39:39","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1909"},"modified":"2023-04-22T08:54:49","modified_gmt":"2023-04-22T00:54:49","slug":"confluence-https-configuration","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/31\/confluence-https-configuration\/","title":{"rendered":"Confluence https\u914d\u7f6e"},"content":{"rendered":"<h2>Confluence Tomcat\u914d\u7f6e<\/h2>\n<p>\u5173\u95edhttp\u670d\u52a1\uff0c\u5f00\u542fhttps\u670d\u52a1<\/p>\n<pre><code>vim conf\/server.xml<\/code><\/pre>\n<p><!-- more --><\/p>\n<pre><code class=\"language-xml\">&lt;!--\n&lt;Connector port=&quot;8090&quot; connectionTimeout=&quot;20000&quot; redirectPort=&quot;8443&quot;\n           maxThreads=&quot;48&quot; minSpareThreads=&quot;10&quot;\n           enableLookups=&quot;false&quot; acceptCount=&quot;10&quot; debug=&quot;0&quot; URIEncoding=&quot;UTF-8&quot;\n           protocol=&quot;org.apache.coyote.http11.Http11NioProtocol&quot;\/&gt;\n--&gt;\n\n&lt;Connector port=&quot;8090&quot; connectionTimeout=&quot;20000&quot; redirectPort=&quot;8443&quot;\n           maxThreads=&quot;48&quot; minSpareThreads=&quot;10&quot;\n           enableLookups=&quot;false&quot; acceptCount=&quot;10&quot; debug=&quot;0&quot; URIEncoding=&quot;UTF-8&quot;\n           protocol=&quot;org.apache.coyote.http11.Http11NioProtocol&quot;\n           scheme=&quot;https&quot; secure=&quot;true&quot; proxyName=&quot;cf.yezhou.me&quot; proxyPort=&quot;443&quot;\/&gt;<\/code><\/pre>\n<h2>Nginx\u914d\u7f6e<\/h2>\n<pre><code>server {\n    listen       443 ssl;\n    server_name  cf.appblog.cn;\n    ssl_certificate \/data\/ssl\/cf\/cf.appblog.cn.pem;\n    ssl_certificate_key \/data\/ssl\/cf\/cf.appblog.cn.key;\n\n    location \/ {\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-Proto https;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n\n        set $backend &quot;http:\/\/127.0.0.1:8090&quot;;\n        proxy_pass $backend;\n        proxy_redirect http:\/\/127.0.0.1:8090 http:\/\/$host\/;\n        proxy_set_header Authorization &quot;&quot;;\n    }\n    location \/synchrony-proxy {\n        proxy_set_header X-Forwarded-Host $host;\n        proxy_set_header X-Forwarded-Server $host;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_pass http:\/\/localhost:8091\/synchrony;\n        proxy_http_version 1.1;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection &quot;Upgrade&quot;;\n    }\n    location \/synchrony {\n        set $backend &quot;http:\/\/127.0.0.1:8091&quot;;\n        proxy_pass $backend;\n        proxy_redirect http:\/\/127.0.0.1:8091 http:\/\/$host\/;\n        proxy_set_header X-Forwarded-Host $host;\n        proxy_set_header X-Forwarded-Server $host;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header Authorization &quot;&quot;;\n        proxy_http_version 1.1;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection &quot;upgrade&quot;;\n    }\n}<\/code><\/pre>\n<h2>\u91cd\u542fConfluence\u524d\u8bb0\u5f97\u5e72\u6389synchrony\u8fdb\u7a0b<\/h2>\n<p>Confluence\u542f\u52a8\u6709\u4e24\u4e2a\u8fdb\u7a0b\uff0c\u4e3b\u8fdb\u7a0b<code>confluence<\/code>\u53ca\u534f\u540c\u8fdb\u7a0b<code>synchrony<\/code>\uff0c\u91cd\u542f\u9700\u8981\u540c\u65f6\u5e72\u6389<code>confluence<\/code>\u53ca<code>synchrony<\/code>\u8fdb\u7a0b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Confluence Tomcat\u914d\u7f6e \u5173\u95edhttp\u670d\u52a1\uff0c\u5f00\u542fhttps\u670d\u52a1 vim conf\/server. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[486],"tags":[485,323],"class_list":["post-1909","post","type-post","status-publish","format-standard","hentry","category-pm","tag-confluence","tag-https"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1909"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1909\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}