You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 line
1.1 KiB

  1. # Put this inside the existing HTTPS server block for oa.qbjjyyun.net.
  2. # The trailing slash keeps the query string: ?roomId=xxx&peerId=xxx
  3. location /ws_webrtc_sfu_api/ {
  4. proxy_pass http://127.0.0.1:4443/;
  5. proxy_http_version 1.1;
  6. proxy_set_header Upgrade $http_upgrade;
  7. proxy_set_header Connection "upgrade";
  8. proxy_set_header Host $host;
  9. proxy_set_header X-Real-IP $remote_addr;
  10. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  11. proxy_set_header X-Forwarded-Proto $scheme;
  12. proxy_read_timeout 86400;
  13. proxy_send_timeout 86400;
  14. }
  15. location /ws_webrtc_sfu_api_test/ {
  16. proxy_pass http://127.0.0.1:4443/;
  17. proxy_http_version 1.1;
  18. proxy_set_header Upgrade $http_upgrade;
  19. proxy_set_header Connection "upgrade";
  20. proxy_set_header Host $host;
  21. proxy_set_header X-Real-IP $remote_addr;
  22. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  23. proxy_set_header X-Forwarded-Proto $scheme;
  24. proxy_read_timeout 86400;
  25. proxy_send_timeout 86400;
  26. }
  27. location /sfu-healthz {
  28. proxy_pass http://127.0.0.1:4443/healthz;
  29. }