Ver código fonte

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

wuwenyi 5 dias atrás
pai
commit
39eb24e76a
1 arquivos alterados com 1 adições e 1 exclusões
  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 目录
     # 域名验证文件(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_pass http://${BACKEND_HOST}:8080/$1;
         proxy_set_header Host $host;
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Real-IP $remote_addr;