nginx.conf 950 B

12345678910111213141516171819202122232425262728293031
  1. server {
  2. listen 8083;
  3. server_name crowd.mooctest.net;
  4. root /usr/share/nginx/html;
  5. #charset koi8-r;
  6. client_max_body_size 100m;
  7. #access_log logs/host.access.log main;
  8. location / {
  9. root /usr/share/nginx/html;
  10. }
  11. location /api {
  12. proxy_set_header Host $host;
  13. proxy_set_header X-Real-IP $remote_addr;
  14. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  15. proxy_pass http://backend:8080;
  16. proxy_connect_timeout 1200s;
  17. proxy_read_timeout 1200s;
  18. proxy_send_timeout 1200s;
  19. }
  20. #error_page 404 /404.html;
  21. # redirect server error pages to the static page /50x.html
  22. #
  23. error_page 500 502 503 504 /50x.html;
  24. location = /50x.html {
  25. root html;
  26. }
  27. }