mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 00:20:45 +00:00
Add WSL support for signed uploads (#2809)
This commit is contained in:
committed by
GitHub
parent
389e11f33b
commit
e863240ad9
@@ -262,8 +262,14 @@ export const initializeS3Config = async (forceLocalInMem = false) => {
|
||||
},
|
||||
});
|
||||
|
||||
let s3Endpoint = fauxqsServer.address;
|
||||
// WSL Quirk!
|
||||
if ( s3Endpoint.includes('10.255.255.254') ) {
|
||||
s3Endpoint = s3Endpoint.replace('10.255.255.254', '127.0.0.1');
|
||||
}
|
||||
|
||||
awsClientConfig = {
|
||||
endpoint: fauxqsServer.address,
|
||||
endpoint: s3Endpoint,
|
||||
credentials: {
|
||||
accessKeyId: 'fakeAccessKeyId',
|
||||
secretAccessKey: 'fakeSecretAccessKey',
|
||||
|
||||
Reference in New Issue
Block a user