# 该配置,如果url路径上有中文会导致中文字符乱码问题
# http://10.0.0.73:10000/apidomain/down/download/report/2022/4/22/参与人积分统计_20220422151521309.csv
location ~ ^/apidomain(.*) {
include cors.conf;
proxy_set_header Host $host;
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://web-api:8080$1?$args;
}
# 解决方法: 使用以下方式替换即可
location /apidomain/ {
include cors.conf;
proxy_set_header Host $host;
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://web-api:8080/;
}