Fix wish server path
parent
178dce64cd
commit
f0cf5e0a62
|
@ -16,7 +16,7 @@ server {
|
||||||
proxy_pass http://127.0.0.1:3000/;
|
proxy_pass http://127.0.0.1:3000/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /api/whip-server {
|
location ^~ /api/wish-server/ {
|
||||||
proxy_pass http://127.0.0.1:3001/;
|
proxy_pass http://127.0.0.1:3001/;
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
|
@ -50,8 +50,8 @@ func main() {
|
||||||
|
|
||||||
runningStreams = map[string]WebRTCStream{}
|
runningStreams = map[string]WebRTCStream{}
|
||||||
mux := http.NewServeMux()
|
mux := http.NewServeMux()
|
||||||
mux.HandleFunc("/api/whip-server/whip", withCors(HandleWHIP))
|
mux.HandleFunc("/api/wish-server/whip", withCors(HandleWHIP))
|
||||||
mux.HandleFunc("/api/whip-server/whep", withCors(HandleWHEP))
|
mux.HandleFunc("/api/wish-server/whep", withCors(HandleWHEP))
|
||||||
|
|
||||||
log.Fatal((&http.Server{
|
log.Fatal((&http.Server{
|
||||||
Handler: mux,
|
Handler: mux,
|
||||||
|
|
Loading…
Reference in New Issue