refactor(core): Port Public API config (no-changelog) (#10082)
This commit is contained in:
16
packages/@n8n/config/src/configs/public-api.ts
Normal file
16
packages/@n8n/config/src/configs/public-api.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user