You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9718252
Browse filesBrowse the repository at this point in the historyBrowse files
feat: add proxy mode for forwarding requests to an upstream server
- add src/proxy.ts with hop-by-hop header filtering and x-forwarded-* headers
- add --proxy CLI flag and PROXY_TARGET env var (mutually exclusive with path)
- make serve/redirect/proxy/listen async, resolving once listening
- remove app.get() custom-route API
- add proxy, env validation, and CLI exclusivity tests
🤖 Generated with [OpenCode](https://opencode.ai) (Smart-router)
Copy file name to clipboardExpand all lines: README.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# HTTPS server running on localhost
2
2
3
-
Run a server on localhost with a locally-trusted SSL certificate. Serve static files, define your own routes, or import it as a module in your project.
3
+
Run a server on localhost with a locally-trusted SSL certificate. Serve static files, proxy an existing server, define your own routes, or import it as a module in your project.
4
4
5
5
The certificate is provided by [mkcert](https://github.com/FiloSottile/mkcert). It automatically creates and installs a local CA in the system and browser root stores, and uses it to generate certificates that your machine trusts. **These are not valid certificates, they are for development only, and will only work in your machine.**
6
6
@@ -25,6 +25,7 @@ Usage notes:
25
25
-`-H, --host <host>`: domain for the certificate (`HOST`)
0 commit comments