From 10bdadeef4ff6137def20c11928fa9a605ebc0b5 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 16 Nov 2024 23:16:20 +0100 Subject: [PATCH] chore: update readme --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 395afcf..96ca431 100644 --- a/README.md +++ b/README.md @@ -46,18 +46,14 @@ import { startProxy } from '@stacksjs/rpx' export interface ReverseProxyConfig { from: string // domain to proxy from, defaults to localhost:3000 to: string // domain to proxy to, defaults to stacks.localhost - https: TlsConfig // use https, defaults to true, also redirects http to https + https: boolean | TlsConfig // automatically uses https, defaults to true, also redirects http to https verbose: boolean // log verbose output, defaults to false } const config: ReverseProxyOptions = { from: 'localhost:3000', to: 'my-project.localhost', - https: { - keyPath: './key.pem', - certPath: './cert.pem', - caCertPath: './ca.pem', - }, + https: true, } startProxy(config)