wkcrm.conf 820 B

1234567891011121314151617181920212223
  1. server {
  2. listen 80;
  3. server_name localhost;
  4. client_max_body_size 100M;
  5. location /api/ {
  6. add_header Access-Control-Allow-Origin *;
  7. add_header Access-Control-Allow-Methods *;
  8. proxy_buffering off;
  9. proxy_redirect off;
  10. proxy_set_header Host $host:$server_port;
  11. proxy_set_header proxy_url "api";
  12. proxy_set_header X-Real-IP $remote_addr;
  13. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  14. proxy_set_header X-Forwarded-Proto $scheme;
  15. proxy_connect_timeout 60;
  16. proxy_send_timeout 120;
  17. proxy_read_timeout 120;
  18. proxy_pass http://localhost:8443/api/;
  19. }
  20. }