From 87fa3815d09cc14901201d3c46952bfd185f690c Mon Sep 17 00:00:00 2001 From: bangbang93 Date: Thu, 8 Feb 2024 12:46:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3nginx=E7=9A=84ssl?= =?UTF-8?q?=E8=AF=81=E4=B9=A6=E8=B7=AF=E5=BE=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/nginx.conf | 4 ++-- src/cluster.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index e02920e..d3ecbaa 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -22,8 +22,8 @@ http { <% if (ssl) { %> listen <%= port %> default ssl http2; - ssl_certificate <%= root %>/cache/cert.pem; - ssl_certificate_key <%= root %>/cache/key.pem; + ssl_certificate <%= tmpdir %>/cert.pem; + ssl_certificate_key <%= tmpdir %>/key.pem; ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; ssl_session_cache shared:SSL:50m; diff --git a/src/cluster.ts b/src/cluster.ts index 5c19e4a..80374e4 100644 --- a/src/cluster.ts +++ b/src/cluster.ts @@ -266,6 +266,7 @@ export class Cluster { ssl: proto === 'https', sock: this._port, user: userInfo().username, + tmpdir: this.tmpDir, }), )