Skip to content

Commit

Permalink
Update route.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely authored Jan 25, 2025
1 parent 4d4f8f4 commit 328fe66
Showing 1 changed file with 41 additions and 21 deletions.
62 changes: 41 additions & 21 deletions etc/nginx/route.conf
Original file line number Diff line number Diff line change
Expand Up @@ -147,27 +147,47 @@
proxy_pass http://$target:$broadcast_tcp_port;
}

# proxy requests to user pod jsmpeg service
location /sound {
set $jwt_token $args;
if ($arg_jwt_token) {
set $jwt_token $arg_jwt_token;
}
include ws.conf;
proxy_pass http://$target:$sound_service_tcp_port/;
break;
}


location /microphone {
set $jwt_token $args;
if ($arg_jwt_token) {
set $jwt_token $arg_jwt_token;
}
include ws.conf;
proxy_pass http://$target:$microphone_service_tcp_port/;
break;
}
location /u8_1_11025 {
set $jwt_token $http_abcauthorization;
include sound.conf;
proxy_pass http://$target:$pulseaudio_http_port/listen/source/u8_1_11025.monitor;
}
location /s16_1_11025 {
set $jwt_token $http_abcauthorization;
include sound.conf;
proxy_pass http://$target:$pulseaudio_http_port/listen/source/s16_1_11025.monitor;
}
location /u8_1_22050 {
set $jwt_token $http_abcauthorization;
include sound.conf;
proxy_pass http://$target:$pulseaudio_http_port/listen/source/u8_1_22050.monitor;
}
location /s16_1_22050 {
set $jwt_token $http_abcauthorization;
include sound.conf;
proxy_pass http://$target:$pulseaudio_http_port/listen/source/s16_1_22050.monitor;
}
location /u8_1_44100 {
set $jwt_token $http_abcauthorization;
include sound.conf;
proxy_pass http://$target:$pulseaudio_http_port/listen/source/u8_1_44100.monitor;
}
location /s16_1_44100 {
set $jwt_token $http_abcauthorization;
include sound.conf;
proxy_pass http://$target:$pulseaudio_http_port/listen/source/s16_1_44100.monitor;
}
location /ulaw8_1_8000 {
set $jwt_token $http_abcauthorization;
include sound.conf;
proxy_pass http://$target:$pulseaudio_http_port/listen/source/ulaw8_1_8000.monitor;
}

location /alaw8_1_8000 {
set $jwt_token $http_abcauthorization;
include sound.conf;
proxy_pass http://$target:$pulseaudio_http_port/listen/source/alaw8_1_8000.monitor;
}

location /speedtest {
gzip off; # use raw data for speedtest
Expand Down

0 comments on commit 328fe66

Please sign in to comment.