refactor(core): Port Public API config (no-changelog) (#10082)

This commit is contained in:
Iván Ovejero
2024-07-17 15:36:40 +02:00
committed by GitHub
parent b0abee7eb6
commit 8a53d6127e
8 changed files with 35 additions and 34 deletions

View File

@@ -0,0 +1,16 @@
import { Config, Env } from '../decorators';
@Config
export class PublicApiConfig {
/** Whether to disable the Public API */
@Env('N8N_PUBLIC_API_DISABLED')
readonly disabled: boolean = false;
/** Path segment for the Public API */
@Env('N8N_PUBLIC_API_ENDPOINT')
readonly path: string = 'api';
/** Whether to disable the Swagger UI for the Public API */
@Env('N8N_PUBLIC_API_SWAGGERUI_DISABLED')
readonly swaggerUiDisabled: boolean = false;
}