Skip to content

Instantly share code, notes, and snippets.

@Lucassifoni
Last active June 11, 2022 14:48
Show Gist options
  • Select an option

  • Save Lucassifoni/d820e6691a29d387c6c083bd24c7fb57 to your computer and use it in GitHub Desktop.

Select an option

Save Lucassifoni/d820e6691a29d387c6c083bd24c7fb57 to your computer and use it in GitHub Desktop.
Phoenix websocket behind nginx with ssl
location /wsapp/ {
proxy_pass http://wsbackend;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment