mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
add auth to logs
This commit is contained in:
@@ -52,7 +52,8 @@ export class OpenTelemetryLogging {
|
||||
const response = await fetch("https://logs.petermaquiran.xyz/loki/api/v1/push", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"Authorization": "Basic " + btoa("admin:tabteste@006"),
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
body: JSON.stringify(logData),
|
||||
});
|
||||
|
||||
@@ -20,11 +20,11 @@ function createProvider(serviceName) {
|
||||
serviceName: serviceName,
|
||||
getExportRequestHeaders: () => {
|
||||
return {
|
||||
'Authorization': `Basic ${btoa('doneit:Tabteste@006')}`,
|
||||
'Authorization': `Basic ${btoa('admin:tabteste@006')}`,
|
||||
};
|
||||
},
|
||||
headers: {
|
||||
'Authorization': `Basic ${btoa('doneit:Tabteste@006')}`,
|
||||
'Authorization': `Basic ${btoa('admin:tabteste@006')}`,
|
||||
}
|
||||
})));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user