http8099.conf 356 B

123456789101112131415161718
  1. server {
  2. listen 8099;
  3. charset utf-8;
  4. location /file/ {
  5. alias /home/admin/project/scancloud/static/;
  6. add_header Access-Control-Allow-Origin *;
  7. }
  8. location ^~ /api/ {
  9. proxy_pass http://localhost:9099;
  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. }