mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
refactor(core): Port Public API config (no-changelog) (#10082)
This commit is contained in:
@@ -81,6 +81,7 @@ export class Server extends AbstractServer {
|
||||
private readonly loadNodesAndCredentials: LoadNodesAndCredentials,
|
||||
private readonly orchestrationService: OrchestrationService,
|
||||
private readonly postHogClient: PostHogClient,
|
||||
private readonly globalConfig: GlobalConfig,
|
||||
) {
|
||||
super('main');
|
||||
|
||||
@@ -96,8 +97,7 @@ export class Server extends AbstractServer {
|
||||
|
||||
this.presetCredentialsLoaded = false;
|
||||
|
||||
const globalConfig = Container.get(GlobalConfig);
|
||||
this.endpointPresetCredentials = globalConfig.credentials.overwrite.endpoint;
|
||||
this.endpointPresetCredentials = this.globalConfig.credentials.overwrite.endpoint;
|
||||
|
||||
await super.start();
|
||||
this.logger.debug(`Server ID: ${this.uniqueInstanceId}`);
|
||||
@@ -185,7 +185,7 @@ export class Server extends AbstractServer {
|
||||
|
||||
await this.postHogClient.init();
|
||||
|
||||
const publicApiEndpoint = config.getEnv('publicApi.path');
|
||||
const publicApiEndpoint = this.globalConfig.publicApi.path;
|
||||
|
||||
// ----------------------------------------
|
||||
// Public API
|
||||
|
||||
Reference in New Issue
Block a user