nginx.conf 284 B

12345678910111213141516
  1. server {
  2. listen 80;
  3. server_name localhost;
  4. location / {
  5. root /usr/share/nginx/html;
  6. index index.html index.htm;
  7. try_files $uri /index.html =404;
  8. }
  9. location ^~ /api/ {
  10. proxy_pass http://127.0.0.1:9999;
  11. }
  12. include /etc/nginx/extra-conf.d/*.conf;
  13. }