rename: plain -> pem

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2023-02-07 13:53:54 +01:00
parent c88fe4e99a
commit b286e3d286
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ export interface HttpRouterFactoryOptions {
// @public
export type HttpServerCertificateOptions =
| {
type: 'plain';
type: 'pem';
key: string;
cert: string;
}
@@ -53,7 +53,7 @@ describe('readHttpServerOptions', () => {
{
listen: { host: '', port: 7007 },
https: {
certificate: { type: 'plain', cert: 'my-cert', key: 'my-key' },
certificate: { type: 'pem', cert: 'my-cert', key: 'my-key' },
},
},
],
+1 -1
View File
@@ -93,7 +93,7 @@ function readHttpsOptions(config?: Config): HttpServerOptions['https'] {
return {
certificate: {
type: 'plain',
type: 'pem',
cert: cc.getString('certificate.cert'),
key: cc.getString('certificate.key'),
},
+1 -1
View File
@@ -51,7 +51,7 @@ export type HttpServerOptions = {
*/
export type HttpServerCertificateOptions =
| {
type: 'plain';
type: 'pem';
key: string;
cert: string;
}
@@ -102,7 +102,7 @@ export class ServiceBuilderImpl implements ServiceBuilder {
this.serverOptions.https = {
certificate: {
...settings.certificate,
type: 'plain',
type: 'pem',
},
};
}