Skip to content

Commit

Permalink
fix(frontend): make frontend server config s3 endpoint url configurab…
Browse files Browse the repository at this point in the history
…le via environment variable. Fixes #7995 (#8033)
  • Loading branch information
rrrkharse authored Aug 2, 2022
1 parent 369e14c commit e312d95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/server/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export function loadConfigs(argv: string[], env: ProcessEnv): UIConfigs {
AWS_ACCESS_KEY_ID,
AWS_SECRET_ACCESS_KEY,
AWS_REGION,
AWS_S3_ENDPOINT,
/** http/https base URL */
HTTP_BASE_URL = '',
/** http/https fetch with this authorization header key (for example: 'Authorization') */
Expand Down Expand Up @@ -124,7 +125,7 @@ export function loadConfigs(argv: string[], env: ProcessEnv): UIConfigs {
artifacts: {
aws: {
accessKey: AWS_ACCESS_KEY_ID || '',
endPoint: 's3.amazonaws.com',
endPoint: AWS_S3_ENDPOINT || 's3.amazonaws.com',
region: AWS_REGION || 'us-east-1',
secretKey: AWS_SECRET_ACCESS_KEY || '',
},
Expand Down

0 comments on commit e312d95

Please sign in to comment.