sop.conf 423 B

12345678910111213141516
  1. server {
  2. listen 7500;
  3. charset utf-8;
  4. location ^~ / {
  5. root ../../sop/web;
  6. try_files $uri $uri/ /index.html;
  7. }
  8. location ^~ /api/ {
  9. proxy_pass http://127.0.0.1:7510;
  10. proxy_set_header Host $http_host;
  11. proxy_set_header X-Real-IP $remote_addr;
  12. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  13. }
  14. }