nginx.conf 832 B

12345678910111213141516171819202122232425262728
  1. server {
  2. listen 80;
  3. server_name www.callfortest.com;
  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. }
  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 html;
  23. }
  24. }