mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +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 { MediaViewerConfig } from './media-viewer-config.interface';
|
||||||
import { BrowseByConfig } from './browse-by-config.interface';
|
import { BrowseByConfig } from './browse-by-config.interface';
|
||||||
import { BundleConfig } from './bundle-config.interface';
|
import { BundleConfig } from './bundle-config.interface';
|
||||||
|
import { ActuatorsConfig } from './actuators.config';
|
||||||
|
|
||||||
interface AppConfig extends Config {
|
interface AppConfig extends Config {
|
||||||
ui: UIServerConfig;
|
ui: UIServerConfig;
|
||||||
@@ -34,6 +35,7 @@ interface AppConfig extends Config {
|
|||||||
themes: ThemeConfig[];
|
themes: ThemeConfig[];
|
||||||
mediaViewer: MediaViewerConfig;
|
mediaViewer: MediaViewerConfig;
|
||||||
bundle: BundleConfig;
|
bundle: BundleConfig;
|
||||||
|
actuators: ActuatorsConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
const APP_CONFIG = new InjectionToken<AppConfig>('APP_CONFIG');
|
const APP_CONFIG = new InjectionToken<AppConfig>('APP_CONFIG');
|
||||||
|
@@ -15,6 +15,7 @@ import { SubmissionConfig } from './submission-config.interface';
|
|||||||
import { ThemeConfig } from './theme.model';
|
import { ThemeConfig } from './theme.model';
|
||||||
import { UIServerConfig } from './ui-server-config.interface';
|
import { UIServerConfig } from './ui-server-config.interface';
|
||||||
import { BundleConfig } from './bundle-config.interface';
|
import { BundleConfig } from './bundle-config.interface';
|
||||||
|
import { ActuatorsConfig } from './actuators.config';
|
||||||
|
|
||||||
export class DefaultAppConfig implements AppConfig {
|
export class DefaultAppConfig implements AppConfig {
|
||||||
production = false;
|
production = false;
|
||||||
@@ -48,6 +49,10 @@ export class DefaultAppConfig implements AppConfig {
|
|||||||
nameSpace: '/',
|
nameSpace: '/',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
actuators: ActuatorsConfig = {
|
||||||
|
endpointPath: '/actuator/health'
|
||||||
|
};
|
||||||
|
|
||||||
// Caching settings
|
// Caching settings
|
||||||
cache: CacheConfig = {
|
cache: CacheConfig = {
|
||||||
// NOTE: how long should objects be cached for by default
|
// NOTE: how long should objects be cached for by default
|
||||||
|
@@ -38,6 +38,10 @@ export const environment: BuildConfig = {
|
|||||||
baseUrl: 'https://rest.com/api'
|
baseUrl: 'https://rest.com/api'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
actuators: {
|
||||||
|
endpointPath: '/actuator/health'
|
||||||
|
},
|
||||||
|
|
||||||
// Caching settings
|
// Caching settings
|
||||||
cache: {
|
cache: {
|
||||||
// NOTE: how long should objects be cached for by default
|
// NOTE: how long should objects be cached for by default
|
||||||
|
Reference in New Issue
Block a user