diff --git a/nginx.conf b/nginx.conf index 23566b65a..131353927 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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; }