nginx.conf 623 B

1234567891011121314151617181920212223242526272829303132333435
  1. #user nobody;
  2. worker_processes 1;
  3. events {
  4. worker_connections 1024;
  5. }
  6. http {
  7. include mime.types;
  8. default_type application/octet-stream;
  9. sendfile on;
  10. #tcp_nopush on;
  11. keepalive_timeout 65;
  12. #gzip on;
  13. server {
  14. listen 80;
  15. server_name localhost;
  16. #resolver 114.114.114.114
  17. charset utf-8;
  18. #access_log /usr/share/nginx/logs/host.access.log;
  19. location /rest/diagnosis {
  20. proxy_pass http://diagnosis:8080/;
  21. }
  22. location / {
  23. root /usr/share/nginx/html;
  24. index index.html;
  25. }
  26. }
  27. }