fix snfsession regex

This commit is contained in:
AllinolCP 2021-11-09 10:22:16 +07:00 committed by GitHub
parent cd20ffd6e9
commit 0bbae1dc42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,8 +88,8 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
} }
location ^/(.*)/web-service/snfgenerator/session$ { location ~ ^/(.*)/web-service/snfgenerator/session$ {
proxy_pass http://dash:3000/session; proxy_pass http://dash:3000/session$is_args$args;
proxy_redirect off; proxy_redirect off;
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;