Skip to content

Commit

Permalink
fix: 修正nginx的ssl证书路径错误
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Feb 8, 2024
1 parent 773ae17 commit 87fa381
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ export class Cluster {
ssl: proto === 'https',
sock: this._port,
user: userInfo().username,
tmpdir: this.tmpDir,
}),
)

Expand Down

0 comments on commit 87fa381

Please sign in to comment.