{"id":349,"date":"2018-07-18T20:04:34","date_gmt":"2018-07-18T12:04:34","guid":{"rendered":"http:\/\/blog.lovexu.cc\/?p=349"},"modified":"2018-07-18T20:09:19","modified_gmt":"2018-07-18T12:09:19","slug":"frp%e5%86%85%e7%bd%91%e7%a9%bf%e9%80%8fhttps%e9%9d%9e%e6%ad%a3%e5%b8%b8%e7%ab%af%e5%8f%a3%e7%9a%84nginx%e5%8f%8d%e4%bb%a3%e8%ae%be%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/lox.im\/index.php\/349.html","title":{"rendered":"frp\u5185\u7f51\u7a7f\u900fhttps\u975e\u6b63\u5e38\u7aef\u53e3\u7684nginx\u53cd\u4ee3\u8bbe\u7f6e"},"content":{"rendered":"<p>\u6700\u8fd1\u5728\u627e\u53cd\u4ee3\u65b9\u6cd5\uff0c\u6700\u540engrok\u548cfrp\u4e2d\u9009\u62e9\u4e24\u8005\u5747\u53ef\u7528\u3002ngrok\u7528\u4f5c\u65e7\u8def\u7531\u7528\uff0c\u56e0\u4e3a\u65e7\u8def\u7531\u5b89\u88c5frp\u6709\u95ee\u9898\u3002\u5728frp\u7528https\u534f\u8bae\u7684\u65f6\u5019\u9047\u5230nginx\u53cd\u4ee3\u6709\u95ee\u9898\uff0c\u67e5\u627e\u518d\u4e09\uff0c\u7ec8\u4e8e\u627e\u5230\u4e86\u89e3\u51b3\u7684\u529e\u6cd5\u3002<\/p>\n<p><!--more--><\/p>\n<pre class=\"lang:default decode:true\">server\r\n{\r\n        listen 443;\r\n        ssl on;\r\n#\u9700\u6309\u60c5\u51b5\u4fee\u6539\u4e3a\u771f\u5b9e\u8bc1\u4e66\u8def\u5f84\r\n        ssl_certificate \/www\/ssl\/pan.lovexu.ooo\/fullchain.pem;        \r\n        ssl_certificate_key \/www\/ssl\/pan.lovexu.ooo\/privkey.pem;       \r\n        ssl_session_cache  builtin:1000  shared:SSL:10m;\r\n        ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;\r\n        ssl_prefer_server_ciphers on;\r\n        server_name pan.lovexu.ooo;\r\n        location \/\r\n\t\t{\r\n        proxy_pass https:\/\/pan.lovexu.ooo:8443;  #frp\u4ee3\u7406\u5730\u5740\u548c\u7aef\u53e3\uff0c\u9700\u4e0efrp\u914d\u7f6e\u6587\u4ef6\u4e2d\u57df\u540d\u76f8\u540c\r\n        proxy_ssl_server_name on;\r\n        proxy_ssl_session_reuse off;\r\n        proxy_set_header Host $http_host;\r\n        proxy_set_header X-Real-IP $remote_addr;\r\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n        proxy_set_header X-Fprwarded-Proto $scheme;\r\n        proxy_ssl_verify   off;\r\n        proxy_redirect http:\/\/ $scheme:\/\/;\r\n        proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\r\n        }\r\n\r\n}<\/pre>\n<p>\u4e4b\u524d\u7f51\u4e0a\u627e\u4e86\u597d\u591a\u90fd\u662f\u9519\u8bef\u7684\uff0c\u6bd4\u5982\u8bf4\u4e0b\u9762\u8fd9\u5217\uff1a<\/p>\n<pre class=\"lang:default decode:true \">server {\r\n       listen 443;  \r\n       server_name pan.lovexu.ooo;\r\n       ssl on;       \r\n       ssl_certificate \/www\/ssl\/pan.lovexu.ooo\/fullchain.pem;        \r\n       ssl_certificate_key \/www\/ssl\/pan.lovexu.ooo\/privkey.pem;          \r\n       ssl_session_timeout 5m;       \r\n       ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;       \r\n       ssl_protocols TLSv1 TLSv1.1 TLSv1.2;       \r\n       ssl_prefer_server_ciphers on; \r\n       location \/        \r\n          {           \r\n          proxy_pass https:\/\/127.0.0.1:8443;            \r\n          proxy_redirect https:\/\/$host\/ https:\/\/$http_host\/;           \r\n          proxy_set_header X-Real-IP $remote_addr;           \r\n          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;           \r\n          proxy_set_header Host $host; \r\n          proxy_set_header X-Forwarded-proto https;\r\n          }    \r\n         }<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5728\u627e\u53cd\u4ee3\u65b9\u6cd5\uff0c\u6700\u540engrok\u548cfrp\u4e2d\u9009\u62e9\u4e24\u8005\u5747\u53ef\u7528\u3002ngrok\u7528\u4f5c\u65e7\u8def\u7531\u7528\uff0c\u56e0\u4e3a\u65e7\u8def\u7531\u5b89\u88c5frp\u6709\u95ee\u9898\u3002\u5728frp\u7528https &#8230;<\/p>\n","protected":false},"author":1,"featured_media":350,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[4],"tags":[11],"class_list":["post-349","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-internet","tag-11"],"_links":{"self":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/comments?post=349"}],"version-history":[{"count":1,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/349\/revisions"}],"predecessor-version":[{"id":351,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/349\/revisions\/351"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/media\/350"}],"wp:attachment":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/media?parent=349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/categories?post=349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/tags?post=349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}