lfbrock
THank you for the reply. The option 1 in your post might be my issue. It shows as pending ... but I still receive user status_update messages and server. This is my nginx config ...
server {
listen 80;
server_name chat.domain.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name chat.mydomain.com;
more_set_headers 'Access-Control-Allow-Origin: *';
more_set_headers 'Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE, HEAD';
more_set_headers 'Access-Control-Expose-Headers: Token';
more_set_headers 'Access-Control-Allow-Headers: Origin,Content-Type,Accept,Authorization';
ssl on;
ssl_certificate /etc/letsencrypt/live/chat.mydomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/chat.mydomain.com/privkey.pem;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
location / {
gzip off;
proxy_set_header X-Forwarded-Ssl on;
client_max_body_size 50M;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_pass http://45.33.XX.XX:8065;
if ($request_method = 'OPTIONS') {
more_set_headers 'Access-Control-Allow-Origin: *';
more_set_headers 'Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE, HEAD';
more_set_headers 'Access-Control-Max-Age: 1728000';
more_set_headers 'Access-Control-Allow-Credentials: true';
more_set_headers 'Access-Control-Allow-Headers: Origin,Content-Type,Accept,Authorization';
more_set_headers 'Access-Control-Expose-Headers: Token';
more_set_headers 'Content-Type: text/plain; charset=UTF-8';
more_set_headers 'Content-Length: 0';
return 204;
}
} indent preformatted text by 4 spaces
location /api/v3/users/websocket {
proxy_set_header X-Forwarded-Ssl on;
proxy_pass http://45.33.XX.XX:8065;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
more_set_headers 'Access-Control-Allow-Origin: *';
more_set_headers 'Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE, HEAD';
more_set_headers 'Access-Control-Expose-Headers: Token';
more_set_headers 'Access-Control-Allow-Headers: Origin,Content-Type,Accept,Authorization';
}
client_max_body_size 4G;
keepalive_timeout 10;
} indent preformatted text by 4 spaces