wkcrm.conf 370 B

1234567891011121314151617
  1. map $http_upgrade $connection_upgrade {
  2. default upgrade;
  3. 'websocket' upgrade;
  4. }
  5. server {
  6. listen 80;
  7. server_name localhost;
  8. client_max_body_size 100M;
  9. location /api/ {
  10. proxy_set_header Upgrade $http_upgrade;
  11. proxy_set_header Connection $connection_upgrade;
  12. proxy_pass http://localhost:8443;
  13. }
  14. }