Fix wish server path

main
Charlotte Som 2023-02-23 11:44:52 +00:00
parent 178dce64cd
commit f0cf5e0a62
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ server {
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_http_version 1.1;

View File

@ -50,8 +50,8 @@ func main() {
runningStreams = map[string]WebRTCStream{}
mux := http.NewServeMux()
mux.HandleFunc("/api/whip-server/whip", withCors(HandleWHIP))
mux.HandleFunc("/api/whip-server/whep", withCors(HandleWHEP))
mux.HandleFunc("/api/wish-server/whip", withCors(HandleWHIP))
mux.HandleFunc("/api/wish-server/whep", withCors(HandleWHEP))
log.Fatal((&http.Server{
Handler: mux,