NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
| # | |
| # Wide-open CORS config for nginx | |
| # | |
| location / { | |
| if ($request_method = 'OPTIONS') { | |
| add_header 'Access-Control-Allow-Origin' '*'; | |
| # |
| # example location parts of nginx.conf | |
| # add your own AWS keys, server lines etc, and set your aws domains, paths | |
| http { | |
| # you will need the luacrypto in the cpath, download from http://luacrypto.luaforge.net/ | |
| lua_package_cpath "/home/justin/lua/luacrypto-0.2.0/src/l?.so.0.2.0;;"; | |
| server { | |
| listen 80; |
| # DO NOT RESPOND TO REQUESTS OTHER THAN yourdomain.com | |
| server { | |
| listen 80 default; | |
| server_name _; | |
| return 444; | |
| } | |
| # FILE UPLOADS | |
| server { | |
| listen 80; |
| // JS Module Pattern: | |
| // http://j.mp/module-pattern | |
| // Redefine: $, window, document, undefined. | |
| var APP = (function($, window, document, undefined) { | |
| // Automatically calls all functions in APP.init | |
| $(document).ready(function() { | |
| APP.go(); | |
| }); |