Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. #user nobody;
  2. worker_processes 1;
  3.  
  4. #error_log logs/error.log;
  5. #error_log logs/error.log notice;
  6. #error_log logs/error.log info;
  7.  
  8. #pid logs/nginx.pid;
  9.  
  10. events {
  11. worker_connections 1024;
  12. }
  13.  
  14. http {
  15. include mime.types;
  16. default_type application/octet-stream;
  17. client_max_body_size 20m;
  18.  
  19. #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  20. # '$status $body_bytes_sent "$http_referer" '
  21. # '"$http_user_agent" "$http_x_forwarded_for"';
  22.  
  23. #access_log logs/access.log main;
  24.  
  25. sendfile on;
  26. #tcp_nopush on;
  27.  
  28. #keepalive_timeout 0;
  29. keepalive_timeout 65;
  30.  
  31. #gzip on;
  32. server {
  33. listen 8080;
  34. server_name localhost;
  35.  
  36. location /websocket/api/socket.io/ {
  37. proxy_set_header Upgrade $http_upgrade;
  38. proxy_set_header Connection "upgrade";
  39. proxy_pass http://127.0.0.1:8003/websocket/api/socket.io/;
  40. }
  41.  
  42. location /news/api/ {
  43. proxy_pass http://127.0.0.1:8001/news/api/;
  44. }
  45.  
  46. location /admin/ {
  47. proxy_pass http://127.0.0.1:3000/;
  48. }
  49.  
  50. location /mining/ {
  51. proxy_pass http://127.0.0.1:9300/mining/;
  52. }
  53.  
  54. location /tc/ {
  55. proxy_pass http://127.0.0.1:9000/;
  56. }
  57.  
  58. location / {
  59. proxy_pass http://127.0.0.1:8065/;
  60. }
  61. }
  62.  
  63.  
  64. # another virtual host using mix of IP-, name-, and port-based configuration
  65. #
  66. #server {
  67. # listen 8000;
  68. # listen somename:8080;
  69. # server_name somename alias another.alias;
  70.  
  71. # location / {
  72. # root html;
  73. # index index.html index.htm;
  74. # }
  75. #}
  76.  
  77.  
  78. # HTTPS server
  79. #
  80. #server {
  81. # listen 443 ssl;
  82. # server_name localhost;
  83.  
  84. # ssl_certificate cert.pem;
  85. # ssl_certificate_key cert.key;
  86.  
  87. # ssl_session_cache shared:SSL:1m;
  88. # ssl_session_timeout 5m;
  89.  
  90. # ssl_ciphers HIGH:!aNULL:!MD5;
  91. # ssl_prefer_server_ciphers on;
  92.  
  93. # location / {
  94. # root html;
  95. # index index.html index.htm;
  96. # }
  97. #}
  98. include servers/*;
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement