mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 01:08:47 +02:00
feat(rules): add regex for image and font file paths in webui presets
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
on: |
|
on: |
|
||||||
!path regex("(_next/static|_next/image|favicon.ico).*")
|
!path regex("(_next/static|_next/image|favicon.ico).*")
|
||||||
!path glob("/api/v1/auth/*")
|
!path glob("/api/v1/auth/*")
|
||||||
|
!path regex("[A-Za-z0-9_-]+\.(svg|png|jpg|jpeg|gif|ico|webp|woff2?|eot|ttf|otf)(\?.+)?")
|
||||||
!path /api/v1/version
|
!path /api/v1/version
|
||||||
do: require_auth
|
do: require_auth
|
||||||
- name: proxy to backend
|
- name: proxy to backend
|
||||||
|
|||||||
Reference in New Issue
Block a user