Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 558 Bytes

README.md

File metadata and controls

29 lines (25 loc) · 558 Bytes

tiny-proxy

Hacking around a simple http proxy.

Don't use in production!

Example Config

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