commit error

This commit is contained in:
Peter Maquiran
2024-03-27 16:04:50 +01:00
parent 66c65cbd09
commit 54aea5a6d8
5 changed files with 16 additions and 9 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ export interface Environment {
dispatchPR: string
storageProduction: boolean
rejectUnauthorized: string
fileHub: string
}
@@ -37,4 +37,4 @@ export interface version {
change: string;
changeStatus: string;
changeAuthor: string;
}
}
@@ -6,6 +6,7 @@ import { HttpClient, HttpHeaders, HttpEventType } from '@angular/common/http';
import { CMAPIService } from '../shared/repository/CMAPI/cmapi.service';
import { HubConnectionBuilder } from '@microsoft/signalr';
import { ok, err as Err, Result } from 'neverthrow';
import { environment } from 'src/environments/environment';
@Injectable({
providedIn: 'root'
})
@@ -90,7 +91,7 @@ class ReconnectingWebSocketSignalR {
}
this.connection = new signalR.HubConnectionBuilder()
.withUrl('https://gdcmapi-dev.dyndns.info/FileHub', {
.withUrl( environment.fileHub, {
transport: signalR.HttpTransportType.LongPolling,
accessTokenFactory: () => SessionStore.user.Authorization
})
+4 -2
View File
@@ -26,7 +26,8 @@ export const environment: Environment = {
dispatchPR: 'Despachos Presidênciais',
sentryUrl: 'https://9920cc36f1d740b987426ee8d80cf588@o4504340905525248.ingest.sentry.io/4504340946419712',
storageProduction: true,
rejectUnauthorized: "true"
rejectUnauthorized: "true",
fileHub: 'https://gdcmapi-dev.dyndns.info/FileHub'
/* production: true,
domain: 'gabinetedigital.local',
defaultuser: '',
@@ -87,5 +88,6 @@ export const DevDev: Environment = {
PR: 'Titular',
VP: '',
dispatchPR: 'Despachos Titular',
storageProduction: false, */
storageProduction: false, */,
fileHub: 'https://gdcmapi-dev.dyndns.info/FileHub'
};
+4 -2
View File
@@ -28,7 +28,8 @@ export const environment: Environment = {
VP: '',
dispatchPR: 'Despachos Titular',
storageProduction: true,
rejectUnauthorized: "true"
rejectUnauthorized: "true",
fileHub: 'https://gdcmapi-dev.dyndns.info/FileHub'
};
export const doneITDev: Environment = {
@@ -58,5 +59,6 @@ export const doneITDev: Environment = {
VP: '',
dispatchPR: 'Despachos Titular',
storageProduction: false,
rejectUnauthorized: "true"
rejectUnauthorized: "true",
fileHub: 'https://gdcmapi-dev.dyndns.info/FileHub'
};
+4 -2
View File
@@ -28,7 +28,8 @@ export const environment: Environment = {
dispatchPR: 'Despachos Presidênciais',
sentryUrl: 'https://9920cc36f1d740b987426ee8d80cf588@o4504340905525248.ingest.sentry.io/4504340946419712',
storageProduction: true,
rejectUnauthorized: "false"
rejectUnauthorized: "false",
fileHub: 'https://gdqas-cmapi.oapr.gov.ao/FileHub'
};
export const oaprDev: Environment = {
@@ -57,5 +58,6 @@ export const oaprDev: Environment = {
dispatchPR: 'Despachos Presidênciais',
sentryUrl: 'https://9920cc36f1d740b987426ee8d80cf588@o4504340905525248.ingest.sentry.io/4504340946419712',
storageProduction: false,
rejectUnauthorized: "false"
rejectUnauthorized: "false",
fileHub: 'https://gdqas-cmapi.oapr.gov.ao/FileHub'
};