mirror of
https://github.com/yusing/godoxy.git
synced 2026-02-24 11:24:52 +01:00
- Introduced `NewTestRoute` function to simplify route creation in benchmark tests. - Replaced direct route validation and starting with error handling using `require.NoError`. - Updated server retrieval to use `common.ProxyHTTPAddr` for consistency. - Improved logging for HTTP route addition errors in `AddRoute` method. * fix(tcp): wrap proxy proto listener before acl * refactor(entrypoint): propagate errors from route registration and stream serving * fix(docs): correct swagger and package README
27 lines
754 B
YAML
27 lines
754 B
YAML
- name: login page
|
|
on: path /login
|
|
do: pass
|
|
- name: protected
|
|
on: |
|
|
!path glob("/@tanstack-start/*")
|
|
!path glob("/@vite-plugin-pwa/*")
|
|
!path glob("/__tsd/*")
|
|
!path /@react-refresh
|
|
!path /@vite/client
|
|
!path regex("/\?token=[a-zA-Z0-9-_]+")
|
|
!path glob("/@id/*")
|
|
!path glob("/api/v1/auth/*")
|
|
!path glob("/auth/*")
|
|
!path regex("([A-Za-z0-9_\-/]+)+\.(css|ts|js|mjs|svg|png|jpg|jpeg|gif|ico|webp|woff2?|eot|ttf|otf|txt)(\?.*)?")
|
|
!path /api/v1/version
|
|
!path /manifest.webmanifest
|
|
do: require_auth
|
|
- name: proxy to backend
|
|
on: path glob("/api/v1/*")
|
|
do: proxy http://${API_ADDR}/
|
|
- name: proxy to auth api
|
|
on: path glob("/auth/*")
|
|
do: |
|
|
rewrite /auth /api/v1/auth
|
|
proxy http://${API_ADDR}/
|