mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-22 00:59:11 +01:00
- Docker compose - tmpfs update /app/.next/cache to /app/node_modules/.cache - tmpfs add /tmp - Rules - Update rules for tanstack start + nitro - Stricter webui rules - Add webui dev rules
25 lines
681 B
YAML
25 lines
681 B
YAML
- name: login page
|
|
on: path /login
|
|
do: pass
|
|
- name: protected
|
|
on: |
|
|
!path glob("@tanstack-start/*")
|
|
!path /@react-refresh
|
|
!path /@vite/client
|
|
!path regex("\?token=\w{5}-\w{5}")
|
|
!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}/
|