Interface: ServerOptions
Defined in: projects/plugins/packages/api/src/lib/structures/http/Server.ts:178
The API options.
Since
1.0.0
Properties
auth?
optional
auth:ServerOptionsAuth
Defined in: projects/plugins/packages/api/src/lib/structures/http/Server.ts:220
The auth options. If neither auth
nor auth.secret
are defined, auth-related routes and middlewares will be
automatically disabled.
Since
1.0.0
Default
{}
automaticallyConnect?
optional
automaticallyConnect:boolean
Defined in: projects/plugins/packages/api/src/lib/structures/http/Server.ts:227
Whether the server should connect upon being when the plugin is loaded.
Since
3.2.0
Default
true
listenOptions?
optional
listenOptions:ListenOptions
Defined in: projects/plugins/packages/api/src/lib/structures/http/Server.ts:212
The HTTP listen options.
Since
1.0.0
Default
{ port: 4000 }
maximumBodyLength?
optional
maximumBodyLength:number
Defined in: projects/plugins/packages/api/src/lib/structures/http/Server.ts:198
(RFC 7230 3.3.2) The maximum decimal number of octets.
Since
1.0.0
Default
1024 * 1024 * 50
origin?
optional
origin:string
Defined in: projects/plugins/packages/api/src/lib/structures/http/Server.ts:191
The origin header to be set on every request at 'Access-Control-Allow-Origin'.
Since
1.0.0
Default
'*'
prefix?
optional
prefix:string
Defined in: projects/plugins/packages/api/src/lib/structures/http/Server.ts:184
The prefix for all routes, e.g. v1/
.
Since
1.0.0
Default
''
server?
optional
server:ServerOptions
Defined in: projects/plugins/packages/api/src/lib/structures/http/Server.ts:205
The HTTP server options.
Since
1.0.0
Default
{}