@stacksjs/rpx 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,6 +17,7 @@
17
17
  - Zero-Config Setup
18
18
  - SSL Support _(HTTPS by default)_
19
19
  - Auto HTTP-to-HTTPS Redirection
20
+ - /etc/hosts Auto-Update
20
21
 
21
22
  ## Install
22
23
 
@@ -46,18 +47,14 @@ import { startProxy } from '@stacksjs/rpx'
46
47
  export interface ReverseProxyConfig {
47
48
  from: string // domain to proxy from, defaults to localhost:3000
48
49
  to: string // domain to proxy to, defaults to stacks.localhost
49
- https: TlsConfig // use https, defaults to true, also redirects http to https
50
+ https: boolean | TlsConfig // automatically uses https, defaults to true, also redirects http to https
50
51
  verbose: boolean // log verbose output, defaults to false
51
52
  }
52
53
 
53
54
  const config: ReverseProxyOptions = {
54
55
  from: 'localhost:3000',
55
56
  to: 'my-project.localhost',
56
- https: {
57
- keyPath: './key.pem',
58
- certPath: './cert.pem',
59
- caCertPath: './ca.pem',
60
- },
57
+ https: true,
61
58
  }
62
59
 
63
60
  startProxy(config)