nginx.conf 797 B

12345678910111213141516171819202122232425262728
  1. server {
  2. listen 80;
  3. server_name www.callfortest.com;
  4. root /usr/share/nginx/html;
  5. #charset koi8-r;
  6. #access_log logs/host.access.log main;
  7. location / {
  8. root /usr/share/nginx/html;
  9. }
  10. location /api {
  11. proxy_set_header Host $host;
  12. proxy_set_header X-Real-IP $remote_addr;
  13. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  14. proxy_pass http://backend:8080;
  15. }
  16. #error_page 404 /404.html;
  17. # redirect server error pages to the static page /50x.html
  18. #
  19. error_page 500 502 503 504 /50x.html;
  20. location = /50x.html {
  21. root html;
  22. }
  23. }