Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Nov 16, 2024
1 parent 6153960 commit 10bdade
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 10bdade

Please sign in to comment.