fix: preserve CMS admin prefix through proxy

This commit is contained in:
flym 2026-09-09 19:13:53 +08:00
parent 864ae270fc
commit 8ff983e858

View File

@ -3,7 +3,9 @@ https://192.168.199.22 {
encode gzip encode gzip
handle_path /cms/* { handle_path /cms/* {
reverse_proxy 127.0.0.1:3001 reverse_proxy 127.0.0.1:3001 {
header_down Location ^/admin(.*)$ /cms/admin$1
}
} }
handle /api/* { handle /api/* {