feat(server): allow customizing server port via SHUMAI_SERVER_PORT

This commit is contained in:
yiling
2026-06-18 10:08:31 +08:00
parent 62d7061cb3
commit a69dd6a660
5 changed files with 37 additions and 20 deletions
+2 -1
View File
@@ -451,7 +451,8 @@ export class LocalStorageService implements S3Service {
}
const storageBackend = process.env.STORAGE_BACKEND || 'local'
const s3Endpoint = process.env.AWS_ENDPOINT_URL_S3 || 'http://localhost:3000'
const s3Endpoint =
process.env.AWS_ENDPOINT_URL_S3 || `http://localhost:${process.env.SHUMAI_SERVER_PORT || '3000'}`
export const s3Service: S3Service =
storageBackend === 's3'