Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,19 @@ http {
return 404 "oops! we couldnt load your interview question lol, i guess this ones free!";
}

#Load balancer
location ~ ^/sound$ {
return 302 $scheme://$http_host/sound/$is_args$args;
}

location ~ ^/sound/$ {
proxy_set_header X-API-KEY $http_x_api_key;
proxy_pass http://mic-monitoring-server.sce;
}

location ~ ^/sound(/.*)?$ {
proxy_pass http://mic-monitoring-server.sce;
}

location /api {
proxy_pass http://mainendpoints;
}
Expand Down