Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
location /uphone {
  add_header Access-Control-Allow-Origin "*";
  add_header Access-Control-Allow-Headers "*";
  add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
  alias /etc/IntegraServer/web/uphone/;
  try_files $uri $uri/ /uphone/;
}


In case the phone does not connect (Not registered), check that the following location is in the default, if not add it:

Code Block
location /IntegraWebsockets {
  add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
  proxy_pass http://localhost:8085;
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_http_version 1.1;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "upgrade";
  proxy_read_timeout 86400s;
  proxy_send_timeout 86400s;
}