https://github.com/gurleensethi/tiny-proxy
https://github.com/gurleensethi/tiny-proxy
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gurleensethi/tiny-proxy
- Owner: gurleensethi
- Created: 2023-10-07T19:46:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-12T05:00:55.000Z (almost 2 years ago)
- Last Synced: 2025-01-29T18:30:02.441Z (8 months ago)
- Language: Go
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tiny-proxy
Hacking around a simple http proxy.
Don't use in production!
# Example Config
```yaml
servers:
- http:
host: localhost
port: 8000
middlewares:
- name: log
- name: cors
options:
allowOrigins: ["*"]
allowMethods: ["*"]
allowHeaders: ["*"]
routes:
- path: "/api/(.+)"
rewrite: "/api/{1}"
backend:
url: http://localhost:4242
- path: "/frontend/*"
backend:
url: http://localhost:5173
```