File tree Expand file tree Collapse file tree 6 files changed +9
-1
lines changed Expand file tree Collapse file tree 6 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ Flowise support different environment variables to configure your instance. You
157
157
| S3_STORAGE_SECRET_ACCESS_KEY | AWS Secret Key | String | |
158
158
| S3_STORAGE_REGION | Region for S3 bucket | String | |
159
159
| S3_ENDPOINT_URL | Custom Endpoint for S3 | String | |
160
+ | S3_FORCE_PATH_STYLE | Set this to true to force the request to use path-style addressing | Boolean | false |
160
161
| SHOW_COMMUNITY_NODES | Show nodes created by community | Boolean | |
161
162
162
163
You can also specify the env variables when using ` npx` . For example:
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ BLOB_STORAGE_PATH=/root/.flowise/storage
48
48
# S3_STORAGE_SECRET_ACCESS_KEY=<your-secret-key>
49
49
# S3_STORAGE_REGION=us-west-2
50
50
# S3_ENDPOINT_URL=<custom-s3-endpoint-url>
51
+ # S3_FORCE_PATH_STYLE=false
51
52
52
53
# APIKEY_STORAGE_TYPE=json (json | db)
53
54
# SHOW_COMMUNITY_NODES=true
Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ Flowise 支持不同的环境变量来配置您的实例。您可以在 `package
150
150
| S3_STORAGE_SECRET_ACCESS_KEY | AWS 密钥 (Secret Key) | 字符串 | |
151
151
| S3_STORAGE_REGION | S3 存储地区 | 字符串 | |
152
152
| S3_ENDPOINT_URL | S3 端点 URL | 字符串 | |
153
+ | S3_FORCE_PATH_STYLE | 将其设置为 true 以强制请求使用路径样式寻址 | Boolean | false |
153
154
| SHOW_COMMUNITY_NODES | 显示由社区创建的节点 | 布尔值 | |
154
155
155
156
您也可以在使用 ` npx` 时指定环境变量。例如:
Original file line number Diff line number Diff line change @@ -331,6 +331,7 @@ export const getS3Config = () => {
331
331
const region = process . env . S3_STORAGE_REGION
332
332
const Bucket = process . env . S3_STORAGE_BUCKET_NAME
333
333
const customURL = process . env . S3_ENDPOINT_URL
334
+ const forcePathStyle = process . env . S3_FORCE_PATH_STYLE === 'true' ? true : false
334
335
335
336
if ( ! region || ! Bucket ) {
336
337
throw new Error ( 'S3 storage configuration is missing' )
@@ -347,7 +348,8 @@ export const getS3Config = () => {
347
348
const s3Client = new S3Client ( {
348
349
credentials,
349
350
region,
350
- endpoint : customURL
351
+ endpoint : customURL ,
352
+ forcePathStyle : forcePathStyle
351
353
} )
352
354
return { s3Client, Bucket }
353
355
}
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ PORT=3000
48
48
# S3_STORAGE_SECRET_ACCESS_KEY=<your-secret-key>
49
49
# S3_STORAGE_REGION=us-west-2
50
50
# S3_ENDPOINT_URL=<custom-s3-endpoint-url>
51
+ # S3_FORCE_PATH_STYLE=false
51
52
52
53
# APIKEY_STORAGE_TYPE=json (json | db)
53
54
# SHOW_COMMUNITY_NODES=true
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export default class Start extends Command {
55
55
S3_STORAGE_SECRET_ACCESS_KEY : Flags . string ( ) ,
56
56
S3_STORAGE_REGION : Flags . string ( ) ,
57
57
S3_ENDPOINT_URL : Flags . string ( ) ,
58
+ S3_FORCE_PATH_STYLE : Flags . string ( ) ,
58
59
SHOW_COMMUNITY_NODES : Flags . string ( )
59
60
}
60
61
@@ -152,6 +153,7 @@ export default class Start extends Command {
152
153
if ( flags . S3_STORAGE_SECRET_ACCESS_KEY ) process . env . S3_STORAGE_SECRET_ACCESS_KEY = flags . S3_STORAGE_SECRET_ACCESS_KEY
153
154
if ( flags . S3_STORAGE_REGION ) process . env . S3_STORAGE_REGION = flags . S3_STORAGE_REGION
154
155
if ( flags . S3_ENDPOINT_URL ) process . env . S3_ENDPOINT_URL = flags . S3_ENDPOINT_URL
156
+ if ( flags . S3_FORCE_PATH_STYLE ) process . env . S3_FORCE_PATH_STYLE = flags . S3_FORCE_PATH_STYLE
155
157
156
158
await ( async ( ) => {
157
159
try {
You can’t perform that action at this time.
0 commit comments