Skip to content

Instantly share code, notes, and snippets.

@rubyisbeautiful
rubyisbeautiful / gist:4945fa431d18c8703f888c8dfc9af3a9
Last active February 21, 2018 23:49 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@rubyisbeautiful
rubyisbeautiful / 01_add_cors.config.yaml
Last active April 4, 2017 21:37 — forked from vsviridov/01_add_cors.config.yaml
Add CORS to Nginx on AWS Elastic Beanstalk
# This doesn't quite work, and neither do any of the others I found.
# At EB deploy time, it generates the config found in /tmp/passenger-standalone* from a template
#
container_commands:
01_fix_static_cors:
command: "/tmp/fix_static_cors.sh"
files:
"/tmp/fix_static_cors.sh":
mode: "000755"
owner: root