tnb.conf 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. ################################################################################
  2. # bnt.reghao.cn
  3. ################################################################################
  4. server {
  5. listen 80;
  6. server_name bnt.reghao.cn;
  7. access_log off;
  8. location / {
  9. proxy_set_header HOST $host;
  10. proxy_set_header X-Real-IP $remote_addr;
  11. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  12. proxy_set_header X-Forwarded-Proto $scheme;
  13. proxy_pass http://127.0.0.1:4030;
  14. }
  15. location /ws {
  16. proxy_set_header Upgrade $http_upgrade;
  17. proxy_set_header Connection $connection_upgrade;
  18. proxy_cache off;
  19. proxy_http_version 1.1;
  20. proxy_buffering off;
  21. proxy_read_timeout 100s;
  22. proxy_set_header Host $host;
  23. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  24. proxy_set_header X-Forwarded-Proto $scheme;
  25. proxy_pass http://127.0.0.1:4030;
  26. }
  27. }
  28. ################################################################################
  29. # oss.reghao.cn
  30. ################################################################################
  31. server {
  32. listen 80;
  33. server_name oss.reghao.cn;
  34. access_log off;
  35. location / {
  36. proxy_set_header HOST $host;
  37. proxy_set_header X-Real-IP $remote_addr;
  38. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  39. proxy_set_header X-Forwarded-Proto $scheme;
  40. proxy_pass http://127.0.0.1:4010;
  41. }
  42. }
  43. ################################################################################
  44. # api.reghao.cn
  45. ################################################################################
  46. server {
  47. listen 80;
  48. server_name api.reghao.cn;
  49. access_log off;
  50. location / {
  51. proxy_set_header HOST $host;
  52. proxy_set_header X-Real-IP $remote_addr;
  53. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  54. proxy_set_header X-Forwarded-Proto $scheme;
  55. proxy_send_timeout 600;
  56. proxy_read_timeout 600;
  57. proxy_connect_timeout 600;
  58. proxy_pass http://127.0.0.1:6000;
  59. }
  60. location /api/data/video/hot {
  61. proxy_http_version 1.1;
  62. proxy_set_header Connection "";
  63. proxy_set_header X-Real-IP $remote_addr;
  64. proxy_set_header Host $host;
  65. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  66. proxy_read_timeout 86400s;
  67. proxy_buffering off;
  68. proxy_cache off;
  69. proxy_pass http://127.0.0.1:6000;
  70. }
  71. location /ws {
  72. proxy_set_header Upgrade $http_upgrade;
  73. proxy_set_header Connection $connection_upgrade;
  74. proxy_cache off;
  75. proxy_http_version 1.1;
  76. proxy_buffering off;
  77. proxy_read_timeout 100s;
  78. proxy_set_header Host $host;
  79. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  80. proxy_set_header X-Forwarded-Proto $scheme;
  81. proxy_pass http://127.0.0.1:6000;
  82. }
  83. }
  84. ################################################################################
  85. # tnb.reghao.cn
  86. ################################################################################
  87. server {
  88. listen 80;
  89. server_name tnb.reghao.cn;
  90. access_log off;
  91. root /opt/webroot/tnbapp;
  92. location / {
  93. try_files $uri $uri/ /index.html;
  94. }
  95. }
  96. # server {
  97. # listen 80;
  98. # server_name tnb1.reghao.cn;
  99. # access_log off;
  100. # location / {
  101. # proxy_set_header HOST $host;
  102. # proxy_set_header X-Real-IP $remote_addr;
  103. # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  104. # proxy_set_header X-Forwarded-Proto $scheme;
  105. # proxy_pass http://127.0.0.1:8000;
  106. # }
  107. # }