Skip to content

Commit

Permalink
fix(nginx): quatrieme tentative
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonestla committed Feb 13, 2025
1 parent 5b379f1 commit 905e346
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
server {
listen 3000;
resolver 8.8.8.8;
add_header 'Access-Control-Allow-Origin' "$http_origin" always;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
Expand All @@ -21,8 +22,8 @@ server {
client_max_body_size 10M;
}
location ~ ^/mistral/(.*)$ {
add_header 'Access-Control-Allow-Origin' "$http_origin" always;
proxy_pass https://api.mistral.ai/v1/$1;
proxy_set_header Access-Control-Allow-Origin "$http_origin"
proxy_set_header Authorization 'Bearer $MISTRAL_KEY';
proxy_set_header Accept application/json;
proxy_set_header Content-Type application/json;
Expand Down

0 comments on commit 905e346

Please sign in to comment.