0

This is my server block.

server {
        set $auth_header 'Bearer my_token';
        listen 80;

        server_name my.domain.com;

        location ~ "(/d\-solo/[a-zA-Z]{8,10}/.+\?.+)" {
                proxy_pass http://localhost:3000/$1;
                proxy_set_header Authorization $auth_header;
        }

        location ~ "(/api/dashboards/uid/[a-zA-Z]{8,10})" {
                proxy_pass http://localhost:3000/$1;
                proxy_set_header Authorization $auth_header;
        }

        location ~ /(.*) {
                proxy_pass http://localhost:3000;
                #NO MATTER WHAT I DO, REQUESTS GO HERE
                proxy_set_header Authorization $auth_header;
        }
}

I've been unable to make my location blocks match urls. The url below, e.g., matches the lowermost block, but I would expect it to match the uppermost block.

http://my.domain.com/d-solo/VYbRWmhZk/grafer?orgId=1&refresh=5m&from=1571353874733&to=1573949474733&var-Marketplace=&panelId=14

Magnus
  • 255
  • 1
  • 2
  • 7

0 Answers0