Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Sep 30, 2024
2 parents c5e7ff0 + 82b9bbc commit a27d368
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

# Changelog

### [Version 1.20.8](https://github.com/lobehub/lobe-chat/compare/v1.20.7...v1.20.8)

<sup>Released on **2024-09-30**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version 1.20.7](https://github.com/lobehub/lobe-chat/compare/v1.20.6...v1.20.7)

<sup>Released on **2024-09-29**</sup>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lobehub/chat",
"version": "1.20.7",
"version": "1.20.8",
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
"keywords": [
"framework",
Expand Down Expand Up @@ -209,7 +209,7 @@
"rtl-detect": "^1.1.2",
"semver": "^7.6.3",
"sharp": "^0.33.5",
"shiki": "1.17.7",
"shiki": "^1.21.0",
"stripe": "^15.8.0",
"superjson": "^2.2.1",
"svix": "^1.30.0",
Expand Down
11 changes: 6 additions & 5 deletions scripts/serverLauncher/startServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,20 @@ const isValidTLS = (url = '') => {
const options = { host, port, servername: host };
return new Promise((resolve, reject) => {
const socket = tls.connect(options, () => {
if (socket.authorized) {
console.log(`✅ TLS Check: Valid certificate for ${host}:${port}.`);
console.log('-------------------------------------');
resolve();
}
console.log(`✅ TLS Check: Valid certificate for ${host}:${port}.`);
console.log('-------------------------------------');

socket.end();

resolve();
});

socket.on('error', (err) => {
const errMsg = `❌ TLS Check: Error for ${host}:${port}. Details:`;
switch (err.code) {
case 'CERT_HAS_EXPIRED':
case 'DEPTH_ZERO_SELF_SIGNED_CERT':
case 'ERR_TLS_CERT_ALTNAME_INVALID':
console.error(`${errMsg} Certificate is not valid. Consider setting NODE_TLS_REJECT_UNAUTHORIZED="0" or mapping /etc/ssl/certs/ca-certificates.crt.`);
break;
case 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY':
Expand Down

0 comments on commit a27d368

Please sign in to comment.