-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Feat] #7415 SSL Certificate Setup
- Loading branch information
Showing
43 changed files
with
732 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { environment } from '@gauzy/config'; | ||
import { ChangelogPlugin } from '@gauzy/changelog-plugin'; | ||
import { JitsuAnalyticsPlugin } from '@gauzy/jitsu-analytics-plugin'; | ||
import { KnowledgeBasePlugin } from '@gauzy/knowledge-base-plugin'; | ||
import { SentryTracing as SentryPlugin } from './sentry'; | ||
|
||
const { jitsu, sentry } = environment; | ||
|
||
/** | ||
* An array of plugins to be included or used in the codebase. | ||
*/ | ||
export const plugins = [ | ||
// Indicates the inclusion or intention to use the ChangelogPlugin in the codebase. | ||
ChangelogPlugin, | ||
// Indicates the inclusion or intention to use the KnowledgeBasePlugin in the codebase. | ||
KnowledgeBasePlugin, | ||
// Initializes the Jitsu Analytics Plugin by providing a configuration object. | ||
JitsuAnalyticsPlugin.init({ | ||
config: { | ||
host: jitsu.serverHost, | ||
writeKey: jitsu.serverWriteKey, | ||
debug: jitsu.debug, | ||
echoEvents: jitsu.echoEvents | ||
} | ||
}), | ||
// Includes the SentryPlugin based on the presence of Sentry configuration. | ||
...(sentry && sentry.dsn ? [SentryPlugin] : []), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import * as Sentry from '@sentry/angular-ivy'; | ||
import { environment } from '../environments/environment'; | ||
import { version } from '../../version'; | ||
|
||
/** | ||
* Initializes and configures the Sentry module. | ||
* @returns The configured Sentry instance. | ||
*/ | ||
export function initializeSentry(): void { | ||
return Sentry.init({ | ||
dsn: environment.SENTRY_DSN, | ||
environment: environment.production ? 'production' : 'development', | ||
debug: !environment.production, | ||
integrations: [ | ||
// Registers and configures the Tracing integration, | ||
// which automatically instruments your application to monitor its | ||
// performance, including custom Angular routing instrumentation | ||
Sentry.browserTracingIntegration(), | ||
// Registers the Replay integration, | ||
// which automatically captures Session Replays | ||
Sentry.replayIntegration() | ||
], | ||
|
||
// Set `tracePropagationTargets` to control for which URLs distributed tracing should be enabled | ||
tracePropagationTargets: [ | ||
'localhost', | ||
/^https:\/\/api\.gauzy\.co\/api/, | ||
/^https:\/\/apistage\.gauzy\.co\/api/, | ||
/^https:\/\/apidemo\.gauzy\.co\/api/ | ||
], | ||
// The release identifier used when uploading respective source maps. | ||
release: 'gauzy@' + version, | ||
// Capture Replay for 10% of all sessions, | ||
// plus for 100% of sessions with an error | ||
replaysSessionSampleRate: environment.SENTRY_TRACES_SAMPLE_RATE ? parseInt(environment.SENTRY_TRACES_SAMPLE_RATE) : 0.01, | ||
replaysOnErrorSampleRate: 1.0, | ||
|
||
// Set tracesSampleRate to 1.0 to capture 100% | ||
// of transactions for performance monitoring. | ||
// We recommend adjusting this value in production | ||
tracesSampleRate: environment.SENTRY_TRACES_SAMPLE_RATE ? parseInt(environment.SENTRY_TRACES_SAMPLE_RATE) : 0.01 | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,26 @@ | ||
import { enableProdMode } from '@angular/core'; | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
import { akitaConfig, enableAkitaProdMode, persistState } from '@datorama/akita'; | ||
|
||
import { AppModule } from './app/app.module'; | ||
import { environment } from './environments/environment'; | ||
|
||
import { enableAkitaProdMode, persistState } from '@datorama/akita'; | ||
import { akitaConfig } from '@datorama/akita'; | ||
import * as Sentry from '@sentry/angular'; | ||
|
||
if (environment.production) { | ||
enableProdMode(); | ||
enableAkitaProdMode(); | ||
} | ||
|
||
persistState({ | ||
key: '_gauzyStore', | ||
key: '_gauzyStore' | ||
}); | ||
|
||
akitaConfig({ | ||
resettable: true, | ||
}); | ||
|
||
Sentry.init({ | ||
dsn: environment.SENTRY_DSN, | ||
environment: environment.production ? 'production' : 'development', | ||
debug: !environment.production, | ||
integrations: [ | ||
// Registers and configures the Tracing integration, | ||
// which automatically instruments your application to monitor its | ||
// performance, including custom Angular routing instrumentation | ||
new Sentry.BrowserTracing({ | ||
tracePropagationTargets: [ | ||
'localhost', | ||
'https://apidemo.gauzy.co', | ||
'https://apistage.gauzy.co', | ||
'https://api.gauzy.co', | ||
], | ||
routingInstrumentation: Sentry.routingInstrumentation, | ||
}), | ||
], | ||
|
||
// Set tracesSampleRate to 1.0 to capture 100% | ||
// of transactions for performance monitoring. | ||
// We recommend adjusting this value in production | ||
tracesSampleRate: environment.SENTRY_TRACES_SAMPLE_RATE | ||
? parseInt(environment.SENTRY_TRACES_SAMPLE_RATE) | ||
: 0.01, | ||
resettable: true | ||
}); | ||
|
||
platformBrowserDynamic() | ||
.bootstrapModule(AppModule, { | ||
preserveWhitespaces: false, | ||
preserveWhitespaces: false | ||
}) | ||
.then((success) => console.log(`Bootstrap success`)) | ||
.catch((err) => console.error(err)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* @description | ||
* Current version of the Gauzy Desktop Timer Application. | ||
* | ||
* @example | ||
* ``` | ||
* import { version } from './version'; | ||
* | ||
* console.log('Gauzy Desktop Timer Application Version:', version); | ||
* ``` | ||
* | ||
* @since 0.1.0 | ||
*/ | ||
export const version: string = require('./package.json').version; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import * as Sentry from "@sentry/angular-ivy"; | ||
import { environment } from "../environments/environment"; | ||
import { version } from '../../version'; | ||
|
||
/** | ||
* Initializes and configures the Sentry module. | ||
* @returns The configured Sentry instance. | ||
*/ | ||
export function initializeSentry(): void { | ||
return Sentry.init({ | ||
dsn: environment.SENTRY_DSN, | ||
environment: environment.production ? 'production' : 'development', | ||
debug: !environment.production, | ||
integrations: [ | ||
// Registers and configures the Tracing integration, | ||
// which automatically instruments your application to monitor its | ||
// performance, including custom Angular routing instrumentation | ||
Sentry.browserTracingIntegration(), | ||
// Registers the Replay integration, | ||
// which automatically captures Session Replays | ||
Sentry.replayIntegration() | ||
], | ||
|
||
// Set `tracePropagationTargets` to control for which URLs distributed tracing should be enabled | ||
tracePropagationTargets: [ | ||
'localhost', | ||
/^https:\/\/api\.gauzy\.co\/api/, | ||
/^https:\/\/apistage\.gauzy\.co\/api/, | ||
/^https:\/\/apidemo\.gauzy\.co\/api/ | ||
], | ||
// The release identifier used when uploading respective source maps. | ||
release: 'gauzy@' + version, | ||
// Capture Replay for 10% of all sessions, | ||
// plus for 100% of sessions with an error | ||
replaysSessionSampleRate: environment.SENTRY_TRACES_SAMPLE_RATE ? parseInt(environment.SENTRY_TRACES_SAMPLE_RATE) : 0.01, | ||
replaysOnErrorSampleRate: 1.0, | ||
|
||
// Set tracesSampleRate to 1.0 to capture 100% | ||
// of transactions for performance monitoring. | ||
// We recommend adjusting this value in production | ||
tracesSampleRate: environment.SENTRY_TRACES_SAMPLE_RATE ? parseInt(environment.SENTRY_TRACES_SAMPLE_RATE) : 0.01 | ||
}); | ||
} |
Oops, something went wrong.