default.conf 317 B

123456789101112131415161718192021
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4. access_log off;
  5. location /api/ {
  6. rewrite ^/api(.*)$ $1 break;
  7. proxy_pass http://127.0.0.1:3000;
  8. }
  9. location /apis/ {
  10. proxy_pass http://127.0.0.1:3000;
  11. }
  12. location / {
  13. root /var/lib/nginx/html;
  14. }
  15. error_page 404 =200 /index.html;
  16. }