nginx.conf 422 B

1234567891011121314151617181920
  1. server {
  2. listen 80;
  3. server_name _;
  4. root /usr/share/nginx/html;
  5. index index.html;
  6. location / {
  7. try_files $uri /index.html;
  8. }
  9. location /api/ {
  10. proxy_pass http://node_app:3000/;
  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. }
  15. error_page 404 /index.html;
  16. }