default.conf 724 B

123456789101112131415161718192021222324252627282930
  1. server {
  2. listen 80;
  3. #server_name your.domain;
  4. #charset koi8-r;
  5. #access_log /var/log/nginx/host.access.log main;
  6. location / {
  7. root /usr/share/nginx/html;
  8. index index.html index.htm;
  9. }
  10. location /server {
  11. proxy_connect_timeout 300;
  12. proxy_pass http://node:3000;
  13. proxy_set_header Connection "upgrade";
  14. proxy_set_header Upgrade $http_upgrade;
  15. proxy_set_header X-Forwarded-for $remote_addr;
  16. }
  17. #error_page 404 /404.html;
  18. # redirect server error pages to the static page /50x.html
  19. #
  20. error_page 500 502 503 504 /50x.html;
  21. location = /50x.html {
  22. root /usr/share/nginx/html;
  23. }
  24. }