Skip to content

Commit

Permalink
workflows#5
Browse files Browse the repository at this point in the history
  • Loading branch information
folland87 committed Mar 21, 2024
1 parent 36f4216 commit b3fa47f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginx:stable
COPY ./dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/templates/nginx.conf.template
EXPOSE 3000
7 changes: 5 additions & 2 deletions client/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ server {
try_files $uri $uri/ /index.html =404;
}
location /api {
set $api_key $API_KEY;
proxy_pass https://cluster-production.elasticsearch.dataesr.ovh;
proxy_set_header Authorization 'Basic $api_key';
proxy_set_header Authorization 'Basic $API_KEY';
proxy_set_header Accept application/json;
proxy_set_header Content-Type application/json;
client_max_body_size 10M;
}
location ~ ^/topics/(.*)$ {
proxy_set_header X-Real-IP $remote_addr;
proxy_pass https://ec.europa.eu/info/funding-tenders/opportunities/data/topicDetails/$1.json;
}
}

0 comments on commit b3fa47f

Please sign in to comment.