Use separate S3 data fields as in S3Config (cs & ts)
This commit is contained in:
parent
3a10e4cb20
commit
9068f183d6
|
@ -15,6 +15,9 @@ public class Installation : TreeNode
|
|||
public Double Lat { get; set; }
|
||||
public Double Long { get; set; }
|
||||
|
||||
public String S3Url { get; set; } = "";
|
||||
public String S3KeySecret { get; set; } = "";
|
||||
public String S3Bucket { get; set; } = "";
|
||||
public String S3Region { get; set; } = "";
|
||||
public String S3Provider { get; set; } = "";
|
||||
public String S3Key { get; set; } = "";
|
||||
public String S3Secret { get; set; } = "";
|
||||
}
|
Binary file not shown.
|
@ -29,9 +29,8 @@ const s3Access = new S3Access(
|
|||
"saliomameiringen",
|
||||
"sos-ch-dk-2",
|
||||
"exo.io",
|
||||
"EXO464a9ff62fdfa407aa742855",
|
||||
"f2KtCWN4EHFqtvH2kotdyI0w5SjjdHVPAADdcD3ik8g",
|
||||
""
|
||||
"EXO464a9ff62fdfa407aa742855", // key
|
||||
"f2KtCWN4EHFqtvH2kotdyI0w5SjjdHVPAADdcD3ik8g" // secret
|
||||
);
|
||||
|
||||
export const fetchData = (
|
||||
|
|
|
@ -10,8 +10,7 @@ export class S3Access
|
|||
readonly region: string,
|
||||
readonly provider: string,
|
||||
readonly key: string,
|
||||
readonly secret: string,
|
||||
readonly contentType: string
|
||||
readonly secret: string
|
||||
)
|
||||
{}
|
||||
|
||||
|
@ -46,8 +45,7 @@ export class S3Access
|
|||
s3Path,
|
||||
date,
|
||||
this.key,
|
||||
this.secret,
|
||||
this.contentType
|
||||
this.secret
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -58,7 +56,7 @@ function createAuthorizationHeader(method: string,
|
|||
date: string,
|
||||
s3Key: string,
|
||||
s3Secret: string,
|
||||
contentType: string,
|
||||
contentType: string = "",
|
||||
md5Hash: string = "")
|
||||
{
|
||||
// StringToSign = HTTP-Verb + "\n" +
|
||||
|
|
|
@ -11,12 +11,16 @@ export interface I_Installation {
|
|||
orderNumbers: string;
|
||||
lat: number;
|
||||
long: number;
|
||||
s3Bucket: string;
|
||||
id: number;
|
||||
name: string;
|
||||
information: string;
|
||||
parentId: number;
|
||||
s3Url: string;
|
||||
|
||||
s3Bucket: string;
|
||||
s3Region: string;
|
||||
s3Provider: string;
|
||||
s3Key: string;
|
||||
s3Secret: string;
|
||||
}
|
||||
|
||||
export interface I_Folder {
|
||||
|
|
Loading…
Reference in New Issue