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.
 
 
 
 

46 line
1.4 KiB

  1. # Copy the location blocks into the existing HTTPS server block of the target OA domain.
  2. # Only enable the domain section that matches the current server.
  3. # production: oa.qbjjyyun.net
  4. # server_name oa.qbjjyyun.net;
  5. # cszxy: oa.educlouddata.com
  6. # server_name oa.educlouddata.com;
  7. # jpggx: oa.61gx.com
  8. # server_name oa.61gx.com;
  9. # nanping: oa.npzx.org.cn
  10. # server_name oa.npzx.org.cn;
  11. location /ws_webrtc_sfu_api/ {
  12. proxy_pass http://127.0.0.1:4443/;
  13. proxy_http_version 1.1;
  14. proxy_set_header Upgrade $http_upgrade;
  15. proxy_set_header Connection "upgrade";
  16. proxy_set_header Host $host;
  17. proxy_set_header X-Real-IP $remote_addr;
  18. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  19. proxy_set_header X-Forwarded-Proto $scheme;
  20. proxy_read_timeout 86400;
  21. proxy_send_timeout 86400;
  22. }
  23. location /sfu-healthz {
  24. proxy_pass http://127.0.0.1:4443/healthz;
  25. }
  26. # live/test only. Enable inside oa.live.educlouddata.com if this environment still uses _test.
  27. # location /ws_webrtc_sfu_api_test/ {
  28. # proxy_pass http://127.0.0.1:4443/;
  29. # proxy_http_version 1.1;
  30. # proxy_set_header Upgrade $http_upgrade;
  31. # proxy_set_header Connection "upgrade";
  32. # proxy_set_header Host $host;
  33. # proxy_set_header X-Real-IP $remote_addr;
  34. # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  35. # proxy_set_header X-Forwarded-Proto $scheme;
  36. # proxy_read_timeout 86400;
  37. # proxy_send_timeout 86400;
  38. # }