nginx.conf 332 B

1234567891011121314151617
  1. server {
  2. listen 3000;
  3. server_name _;
  4. location / {
  5. root /usr/share/nginx/html/frontend;
  6. index index.html;
  7. try_files $uri $uri/ /index.html;
  8. }
  9. location /api/ {
  10. proxy_pass http://backend:8080/;
  11. proxy_set_header Host $host;
  12. proxy_cache_bypass $http_upgrade;
  13. }
  14. }