Skip to content

Commit

Permalink
Fix API error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
bzar committed Oct 19, 2017
1 parent 7591169 commit 87a04bb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ansible/roles/nginx/templates/nginx_site_config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ server {
add_header Bypass-Sameorigin-Policy 1;
}

location /data/api {
proxy_pass http://127.0.0.1:8080/data/api;
location ~ /data/(fi/|en/|sv/)?(api/)(.*) {
proxy_pass http://127.0.0.1:8080/data/$1$2$3;

# Do not show nginx's 404 error page for the API
proxy_intercept_errors off;
}
Expand Down Expand Up @@ -210,4 +211,4 @@ server {
server {
server_name .yhteentoimivuus.fi;
rewrite ^ https://www.avoindata.fi/data/fi/dataset?collection_type=Interoperability+Tools permanent;
}
}

0 comments on commit 87a04bb

Please sign in to comment.