Skip to content

Commit

Permalink
fix(ci): add filter to base url
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed May 17, 2024
1 parent 6b99903 commit 04e5b58
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ server {
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
location ~ ^/api/(.*)$ {
proxy_pass https://scanr-api.dataesr.ovh/$1;
proxy_set_header Authorization 'Basic $VITE_SCANR_API_AUTHORIZATION';
proxy_set_header Accept application/json;
proxy_set_header Content-Type application/json;
client_max_body_size 10M;
}
location ~ ^/api/(.*)$ {
proxy_pass https://scanr-api.dataesr.ovh/$1$is_args$args;
proxy_set_header Authorization 'Basic $VITE_SCANR_API_AUTHORIZATION';
proxy_set_header Accept application/json;
proxy_set_header Content-Type application/json;
client_max_body_size 10M;
}
}

0 comments on commit 04e5b58

Please sign in to comment.