Skip to content

Instantly share code, notes, and snippets.

View 5290charlie's full-sized avatar
🎯
Focusing

Charlie McClung 5290charlie

🎯
Focusing
View GitHub Profile
@5290charlie
5290charlie / php-aws-acm-import.php
Created April 7, 2017 21:56
Simple PHP + AWS-CLI to update AWS ACM certificates
<?php
date_default_timezone_set('UTC');
function out($msg) {
$now = date('Y-m-d H:i:s');
echo "[{$now}] {$msg}\n";
}
@5290charlie
5290charlie / elb-nodejs-ws.md
Created April 14, 2017 23:53 — forked from obolton/elb-nodejs-ws.md
Configuring an AWS Elastic Load Balancer for a Node.js application using WebSockets on EC2

AWS ELB with Node.js and WebSockets

This assumes that:

  • You are using Nginx.
  • You want to accept incoming connections on port 80.
  • Your Node.js app is listening on port 3000.
  • You want to be able to connect to your Node.js instance directly as well as via the load balancer.

####1. Create load balancer

@5290charlie
5290charlie / websocket-elb.md
Created April 14, 2017 23:53 — forked from zhiguangwang/websocket-elb.md
Configure websockets behind an AWS ELB.