소스 검색

feat: 域名验证文件转发访问

wuwenyi 5 일 전
부모
커밋
39eb24e76a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      gateway/nginx.conf.template

+ 1 - 1
gateway/nginx.conf.template

@@ -23,7 +23,7 @@ server {
     }
 
     # 域名验证文件(WW_verify_xxx.txt / MP_verify_xxx.txt 等),转发到后端 static 目录
-    location ~ ^/([A-Z]{2,}_verify_.*\.txt)$ {
+    location ~ "^/([A-Z]{2,}_verify_.*\.txt)$" {
         proxy_pass http://${BACKEND_HOST}:8080/$1;
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;