Skip to content

Commit

Permalink
chore: update readme examples
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Dec 9, 2024
1 parent 0a54961 commit 4284e7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@ 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
cleanUrls?: boolean // removes the .html extension from URLs, defaults to false
https: boolean | TlsConfig // automatically uses https, defaults to true, also redirects http to https
etcHostsCleanup?: boolean // automatically cleans up /etc/hosts, defaults to false
verbose: boolean // log verbose output, defaults to false
}

const config: ReverseProxyOptions = {
from: 'localhost:3000',
to: 'my-project.localhost',
to: 'my-docs.localhost',
cleanUrls: true,
https: true,
etcHostsCleanup: true,
}
Expand Down Expand Up @@ -83,6 +85,7 @@ const config: ReverseProxyOptions = {
{
from: 'localhost:5173',
to: 'my-app.localhost',
cleanUrls: true,
},
{
from: 'localhost:5174',
Expand Down

0 comments on commit 4284e7e

Please sign in to comment.