Comment 1 for bug 1668774

Revision history for this message
Blake Rouse (blake-rouse) wrote :

MAAS has no issues working with SSL. You didn't state the web server you are using, but here is the nginx.conf I used to confirm it works as expected. You most likely are not handing the websocket proxying correctly.

server {
 listen 443 ssl;

 server_name _;
 ssl_certificate /etc/nginx/ssl/nginx.crt;
 ssl_certificate_key /etc/nginx/ssl/nginx.key;

 location / {
  proxy_pass http://localhost:5240;
  include /etc/nginx/proxy_params;
 }

 location /MAAS/ws {
  proxy_pass http://localhost:5240/MAAS/ws;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "Upgrade";
 }

}