default.conf 350 B

123456789101112131415161718
  1. server {
  2. listen 39101;
  3. listen [::]:39101;
  4. server_name localhost;
  5. access_log access.log;
  6. error_log error.log;
  7. location / {
  8. root /dist;
  9. index index.html index.htm;
  10. try_files $uri $uri/ /index.html;
  11. }
  12. # 后端
  13. location /api {
  14. proxy_pass http://192.168.31.83:39000;
  15. }
  16. }