语音质检系统web端

nginx.conf 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. user www-data;
  2. worker_processes auto;
  3. pid /run/nginx.pid;
  4. include /etc/nginx/modules-enabled/*.conf;
  5. events {
  6. worker_connections 768;
  7. # multi_accept on;
  8. }
  9. http {
  10. ##
  11. # Basic Settings
  12. ##
  13. sendfile on;
  14. tcp_nopush on;
  15. types_hash_max_size 2048;
  16. # server_tokens off;
  17. # server_names_hash_bucket_size 64;
  18. # server_name_in_redirect off;
  19. include /etc/nginx/mime.types;
  20. default_type application/octet-stream;
  21. ##
  22. # SSL Settings
  23. ##
  24. ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
  25. ssl_prefer_server_ciphers on;
  26. ##
  27. # Logging Settings
  28. ##
  29. access_log /var/log/nginx/access.log;
  30. error_log /var/log/nginx/error.log;
  31. ##
  32. # Gzip Settings
  33. ##
  34. server {
  35. listen 8121;
  36. server_name localhost;
  37. location / {
  38. root /home/website/web;
  39. try_files $uri $uri/ /index.html;
  40. index index.html index.htm;
  41. }
  42. location /prod-api/{
  43. proxy_set_header Host $http_host;
  44. proxy_set_header X-Real-IP $remote_addr;
  45. proxy_set_header REMOTE-HOST $remote_addr;
  46. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  47. proxy_pass http://localhost:8120/;
  48. }
  49. error_page 500 502 503 504 /50x.html;
  50. location = /50x.html {
  51. root html;
  52. }
  53. }
  54. gzip on;
  55. # gzip_vary on;
  56. # gzip_proxied any;
  57. # gzip_comp_level 6;
  58. # gzip_buffers 16 8k;
  59. # gzip_http_version 1.1;
  60. # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  61. ##
  62. # Virtual Host Configs
  63. ##
  64. include /etc/nginx/conf.d/*.conf;
  65. include /etc/nginx/sites-enabled/*;
  66. }
  67. #mail {
  68. # # See sample authentication script at:
  69. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  70. #
  71. # # auth_http localhost/auth.php;
  72. # # pop3_capabilities "TOP" "USER";
  73. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  74. #
  75. # server {
  76. # listen localhost:110;
  77. # protocol pop3;
  78. # proxy on;
  79. # }
  80. #
  81. # server {
  82. # listen localhost:143;
  83. # protocol imap;
  84. # proxy on;
  85. # }
  86. #}