http7800.conf 337 B

123456789101112131415161718
  1. server {
  2. listen 7800;
  3. charset utf-8;
  4. location / {
  5. root /home/admin/project/ops-api/web;
  6. try_files $uri $uri/ /index.html;
  7. }
  8. location ^~ /api/ {
  9. proxy_pass http://localhost:3577;
  10. proxy_set_header Host $host;
  11. proxy_set_header X-Real-IP $remote_addr;
  12. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  13. }
  14. }