mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[CST-5535] Add environment configuration for Actuators
This commit is contained in:
11
src/config/actuators.config.ts
Normal file
11
src/config/actuators.config.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Config } from './config.interface';
|
||||
|
||||
/**
|
||||
* Config that determines the spring Actuators options
|
||||
*/
|
||||
export class ActuatorsConfig implements Config {
|
||||
/**
|
||||
* The endpoint path
|
||||
*/
|
||||
public endpointPath: string;
|
||||
}
|
@@ -15,6 +15,7 @@ import { UIServerConfig } from './ui-server-config.interface';
|
||||
import { MediaViewerConfig } from './media-viewer-config.interface';
|
||||
import { BrowseByConfig } from './browse-by-config.interface';
|
||||
import { BundleConfig } from './bundle-config.interface';
|
||||
import { ActuatorsConfig } from './actuators.config';
|
||||
|
||||
interface AppConfig extends Config {
|
||||
ui: UIServerConfig;
|
||||
@@ -34,6 +35,7 @@ interface AppConfig extends Config {
|
||||
themes: ThemeConfig[];
|
||||
mediaViewer: MediaViewerConfig;
|
||||
bundle: BundleConfig;
|
||||
actuators: ActuatorsConfig
|
||||
}
|
||||
|
||||
const APP_CONFIG = new InjectionToken<AppConfig>('APP_CONFIG');
|
||||
|
@@ -15,6 +15,7 @@ import { SubmissionConfig } from './submission-config.interface';
|
||||
import { ThemeConfig } from './theme.model';
|
||||
import { UIServerConfig } from './ui-server-config.interface';
|
||||
import { BundleConfig } from './bundle-config.interface';
|
||||
import { ActuatorsConfig } from './actuators.config';
|
||||
|
||||
export class DefaultAppConfig implements AppConfig {
|
||||
production = false;
|
||||
@@ -48,6 +49,10 @@ export class DefaultAppConfig implements AppConfig {
|
||||
nameSpace: '/',
|
||||
};
|
||||
|
||||
actuators: ActuatorsConfig = {
|
||||
endpointPath: '/actuator/health'
|
||||
};
|
||||
|
||||
// Caching settings
|
||||
cache: CacheConfig = {
|
||||
// NOTE: how long should objects be cached for by default
|
||||
|
@@ -38,6 +38,10 @@ export const environment: BuildConfig = {
|
||||
baseUrl: 'https://rest.com/api'
|
||||
},
|
||||
|
||||
actuators: {
|
||||
endpointPath: '/actuator/health'
|
||||
},
|
||||
|
||||
// Caching settings
|
||||
cache: {
|
||||
// NOTE: how long should objects be cached for by default
|
||||
|
Reference in New Issue
Block a user