nginx.conf 986 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. user nginx;
  2. worker_processes auto;
  3. worker_rlimit_nofile 65535;
  4. error_log /var/log/nginx/error.log notice;
  5. pid /var/run/nginx.pid;
  6. events {
  7. worker_connections 65535;
  8. }
  9. http {
  10. include /etc/nginx/mime.types;
  11. default_type application/octet-stream;
  12. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  13. '$status $body_bytes_sent "$http_referer" '
  14. '"$http_user_agent" "$http_x_forwarded_for"';
  15. access_log /var/log/nginx/access.log main;
  16. sendfile on;
  17. #tcp_nopush on;
  18. keepalive_timeout 65;
  19. server{
  20. listen 80;
  21. listen [::]:80;
  22. server_name localhost;
  23. location /chart/ {
  24. proxy_pass http://172.17.0.1:30144/;
  25. }
  26. location / {
  27. root /usr/share/nginx/html;
  28. index index.html index.html;
  29. try_files $uri $uri /index.html;
  30. }
  31. }
  32. }