feat: add Master Admin application functionality
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
export interface AppFirebaseConfig {
|
||||
apiKey: string;
|
||||
authDomain: string;
|
||||
projectId: string;
|
||||
storageBucket: string;
|
||||
messagingSenderId: string;
|
||||
appId: string;
|
||||
measurementId: string;
|
||||
}
|
||||
|
||||
export interface AppSessionTimeoutConfig {
|
||||
warningAfterMs: number;
|
||||
logoutAfterMs: number;
|
||||
}
|
||||
|
||||
export interface AppEnvironment {
|
||||
production: boolean;
|
||||
api: {
|
||||
identity: string;
|
||||
masterAdmin: string;
|
||||
};
|
||||
sessionTimeout: AppSessionTimeoutConfig;
|
||||
firebase: AppFirebaseConfig;
|
||||
}
|
||||
@@ -1,6 +1,11 @@
|
||||
export const environment = {
|
||||
import { AppEnvironment } from './environment.model';
|
||||
|
||||
export const environment: AppEnvironment = {
|
||||
production: true,
|
||||
apiBaseUrl: '/api',
|
||||
api: {
|
||||
identity: '/api',
|
||||
masterAdmin: '/api',
|
||||
},
|
||||
sessionTimeout: {
|
||||
warningAfterMs: 25 * 60 * 1000,
|
||||
logoutAfterMs: 30 * 60 * 1000,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// This file can be replaced during build by using the `fileReplacements` array.
|
||||
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
|
||||
// The list of file replacements can be found in `angular.json`.
|
||||
export const environment = {
|
||||
production: false,
|
||||
//apiBaseUrl: 'https://localhost:5001/api',
|
||||
import { AppEnvironment } from './environment.model';
|
||||
|
||||
export const environment: AppEnvironment = {
|
||||
production: false,
|
||||
api: {
|
||||
identity: 'https://localhost:5001/api',
|
||||
masterAdmin: 'https://localhost:5002/api',
|
||||
|
||||
Reference in New Issue
Block a user