mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 22:14:50 +00:00
feat(server): allow customizing server port via SHUMAI_SERVER_PORT
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user