err := http.ListenAndServeTLS(":8081",
"/etc/nginx/ssl/private.crt",
"/etc/nginx/ssl/private.key", nil)
if err != nil {
fmt.Println(err.Error())
}
client_max_body_size 0;
proxy_http_version 1.1;
proxy_pass http://your.websocket.backend/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";